SPOILER ALERT: Here are some examples of the solution of the Project Euler's problems. They are not necesarily the best. I use Python, and soon there will be the same solutions in Ruby :)