haskell: add [p4, p10]
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
7
haskell/p10.hs
Normal file
7
haskell/p10.hs
Normal file
@@ -0,0 +1,7 @@
|
||||
import Lib (primes)
|
||||
|
||||
main :: IO ()
|
||||
main = putStr $ show solve
|
||||
|
||||
solve :: Integer
|
||||
solve = sum $ takeWhile (< 2000000) primes
|
Reference in New Issue
Block a user