Advertisement
Brunplunsu

prime_numbers

Apr 26th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. primes = 2 : [ y | y <- [3..], (foldr ((||).(\x->mod y x == 0)) False [2..y-1]) == False]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement