Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- isPrime n = isElemZero $
- map (mod n) [2..n-1]
- isElemZero (x:xs)
- | x==0 = True
- | xs==[] = False
- | otherwise = isElemZero xs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement