Cleaning and commenting Euler40.rb