Project Euler in Ruby.