Project Euler problems implemented in Ruby