Project Euler Problems solved in Ruby