Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print primeCheck(13)
- 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
- if x/num = 1 and x <> num then
- primeCheck = 1
- exit for
- end if
- next num
- end function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement