project euler solutions in Ruby