public
Created

Project Euler - Problem 2

  • Download Gist
euler-002.hs
Haskell
1 2
result = sum $ takeWhile (<= 4000000) $ filter even fibs
where fibs = 1:2:zipWith (+) fibs (tail fibs)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.