haskell: add [p4, p10]

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-10-27 08:54:11 +05:30
parent e3f9ab49f3
commit ad0acc15c9
8 changed files with 81 additions and 2 deletions

7
haskell/p10.hs Normal file
View File

@@ -0,0 +1,7 @@
import Lib (primes)
main :: IO ()
main = putStr $ show solve
solve :: Integer
solve = sum $ takeWhile (< 2000000) primes