Euler problem 12 solved