Project Euler problems done in Ruby