Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- temp = 101
- bFlag = True
- For temp =2 to temp-1
- For i=2 to temp-1
- temp1 = temp Mod i
- If temp1 =0 Then
- bFlag = False
- Exit for
- End If
- Next
- If bFlag Then
- Wscript.Echo temp & " Prime"
- Else
- Wscript.Echo temp & " Not Prime"
- End If
- bFlag = True
- Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement