Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. function primeCheck(x)
  2. for num = x to 0 step -1
  3. if num > 1 then
  4. if x/num = int(x/num) then
  5. primecheck = 0
  6. exit for
  7. end if
  8. else
  9. primecheck = 1
  10. exit for
  11. end if
  12.  
  13.  
  14.  
  15.  
  16. next num
  17.  
  18. end function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement