Euler problem 18