Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. isPrime n = isElemZero $
  2.   map (mod n) [2..n-1]
  3.  
  4. isElemZero (x:xs)
  5.   | x==0 = True
  6.   | xs==[] = False
  7.   | otherwise = isElemZero xs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement