Euler Project Problem 11