Solve Euler 5