ruby solutions for projecteuler problems