Solution to ProjectEuler Problems in Ruby.