Euler Project - Problem 6