VERSION 5.00 Begin VB.Form Form1 Caption = "Form1" ClientHeight = 3090 ClientLeft = 60 ClientTop = 450 ClientWidth = 4680 LinkTopic = "Form1" ScaleHeight = 3090 ScaleWidth = 4680 StartUpPosition = 3 'Windows Default Begin VB.ListBox List1 Height = 2205 Left = 3000 TabIndex = 2 Top = 840 Width = 1695 End Begin VB.CommandButton Command1 Caption = "Display" Height = 495 Left = 120 TabIndex = 1 Top = 2520 Width = 2895 End Begin VB.TextBox Text1 Height = 375 Left = 0 TabIndex = 0 Top = 240 Width = 4695 End Begin VB.Label Label2 AutoSize = -1 'True Height = 195 Left = 480 TabIndex = 4 Top = 720 Width = 45 End Begin VB.Label Label1 AutoSize = -1 'True Height = 195 Left = 720 TabIndex = 3 Top = 840 Width = 45 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() List1.Clear n = Val(Text1.Text) For j = n To 1 Step -1 For i = n - 1 To 2 Step -1 If n Mod i = 0 Then GoTo 9 Label1.Caption = "Aval hast" Next i List1.AddItem (n) 9: n = n - 1 Next j If Val(Text1.Text) <> List1.List(0) Then Label1.Caption = "Aval nist" End Sub