Euler problem 14 solved