Euler problem 10