Project Euler implementations using Ruby