Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print primeCheck(11)
- end
- function primeCheck(x)
- for num = x to 0 step -1
- if x/num = int(x/num) and num > 1 then
- primeCheck = 0
- exit for
- end if
- primeCheck=1
- next num
- end function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement