project euler in ruby