Euler problem 12