Created
March 23, 2011 04:55
-
-
Save dbyrne/882641 to your computer and use it in GitHub Desktop.
Project Euler #2 - Haskell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fibs = 1 : 2 : zipWith (+) fibs (tail fibs) | |
prob2 = sum $ takeWhile (< 4000000) $ filter even fibs | |
main = putStrLn (show prob2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment