Euler Project - Problem 2