Project Euler problem 25
Done in Haskell. Most probably not the most elegant solution.
Done in Haskell. Most probably not the most elegant solution.
I'm learning programming in Haskell, and Project Euler (http://projecteuler.net/) is a good way to have some programming exercises. Here's my Haskell solution for Project Euler problem #2 "Find the sum of all the even-valued terms in the Fibonacci sequence which do not exceed four million."