Advertisement
Guest User

pe3

a guest
Aug 11th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pe3 = maximum [ x | x <- takeWhile (<= 775146) primes,
  2.                     600851475143 `mod` x == 0 ]
  3.  
  4. primes = filterPrime [2..]
  5.             where filterPrime (p:xs) = p : filterPrime [x | x <- xs, x `mod` p /= 0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement