For Problem 6 in Project Euler.