euler 4 in ruby