https://www.colorless-sight.jp:443/wiki/?ProjectEular%2FProblem10
-- Problem 10 module Main (main) where import qualified Common as C (is_prime) main :: IO () main = print $ problem10 problem10 :: (Integral a) => a problem10 = sum [ x | x <- (2:[3,5..2000000]), C.is_prime x ] |
最新の20件2023-08-12
2022-12-28
2017-08-15
2014-01-31
2014-01-29
2013-06-04
2012-11-23
2010-08-01
2010-07-24
Tweet
|