euler19 solved in ruby