Euler problem 7