Project Euler problems solved using Ruby