Solved Project Euler #29 in Haskell.