Ruby project euler solution 1