Solved Euler 31