diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-04-01 17:41:53 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-04-01 17:41:53 +0800 |
commit | b47befab3696c40c710ee80f366fa376ec967b30 (patch) | |
tree | 7859df15302b2ba7bea0a6eaa41dac1052d2deb6 /H41.hs | |
parent | d09ec147fa223dcf760eaa592bc0573e678ea412 (diff) | |
download | h99-b47befab3696c40c710ee80f366fa376ec967b30.tar.gz h99-b47befab3696c40c710ee80f366fa376ec967b30.tar.bz2 h99-b47befab3696c40c710ee80f366fa376ec967b30.zip |
+40 +41
Diffstat (limited to 'H41.hs')
-rw-r--r-- | H41.hs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +import H40 + +goldbachList :: Integer -> Integer -> [(Integer,Integer)] + +goldbachList a b + | a `mod` 2 == 0 = map goldbach [a,(a+2)..b] + | otherwise = goldbachList (a+1) b + +goldbachList' a b = filter ((>50).fst) $ goldbachList a b |