Euler Project solutions in .rb