I wrote this script to judge if it's prime or not... Is any method to do this work more pretty ? $x = InputBox("IsPrime","Input a number to judge if it is prime","","",160 ,150 ,610 ,203) If $x == 1 Then MsgBox(0,"Prime","Is Not Prime or Prime") ElseIf $x == 2 Then MsgBox(0,"Prime","Is Prime") Else EndIf For $y = 2 To $x-1 Step +1 If(Mod($x , $y)) = 0 Then MsgBox(0,"Prime","Is Not Prime") ExitLoop Else MsgBox(0,"Prime","Is Prime") ExitLoop EndIf Next