Project Euler resolutions in Ruby.