Improved project structure.
This commit is contained in:
4
haskell/e010.hs
Normal file
4
haskell/e010.hs
Normal file
@@ -0,0 +1,4 @@
|
||||
-- 10 - sum prime smaller 2 million
|
||||
eres :: Integral a => [a] -> [a]
|
||||
eres (x:xs) = if x*x < last xs then x:eres (filter (\y -> rem y x /= 0) xs) else (x:xs)
|
||||
problem_10 = sum $ eres [2..2000000]
|
||||
Reference in New Issue
Block a user