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.CommandButton Command1 Caption = "Run" Height = 495 Left = 1560 TabIndex = 0 Top = 1920 Width = 1695 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() c = 0 'gets number num = InputBox("Enter Number") 'run for ring form 1 to num For a = 1 To num If num Mod a = 0 Then c = c + 1 Next If c <= 2 Then Print "Frist" Else Print "Not Frist" End If End Sub