Project Euler Solutions in Ruby