Euler's problem 4