Correct Euler_Problem8.rb