Private Sub Command1_Click()n = Val(Text1.Text)Do While i < n For i = 2 To n - 1 If n Mod i = 0 Then n = n \ i s = s & i & "*" Exit For End If Next iLoopText2.Text = s & nEnd Sub