Project Euler Ruby solutions