Improved project structure.
This commit is contained in:
3
haskell/e002.hs
Normal file
3
haskell/e002.hs
Normal file
@@ -0,0 +1,3 @@
|
||||
-- 2 - all even primes lower 4 million
|
||||
problem_2 :: Int
|
||||
problem_2 = sum [x | x <- (takeWhile (<= 4000000) ((fix (\f x y -> x:f y (x+y))) 1 1)), even x]
|
||||
Reference in New Issue
Block a user