Solving Project Euler Problems in Ruby