Euler 31 solved