(Some) solutions for Project Euler problems in Ruby and Haskell