Project Euler exercises in Ruby