Some ruby code to solve Project Euler problems