Project Euler, Ruby