Project Euler 6 solution.