Skip to content

Instantly share code, notes, and snippets.

@mikamix
Last active January 1, 2016 13:09
Show Gist options
  • Save mikamix/8149521 to your computer and use it in GitHub Desktop.
Save mikamix/8149521 to your computer and use it in GitHub Desktop.
fibs = 1 : 2 : zipWith (+) fibs (tail fibs)
main = print $ sum [x| x <- takeWhile (< 4000000) fibs, even x]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment