Euler problem 9