Complete Problem 15 in project euler