How I solve problems of projecteuler.net using Ruby