solutions for projecteuler.net in ruby