The Seventh problem from ProjectEuler.net