Project Euler's solutions in Ruby for problems 3, 7, 8 and 9.