Finish Euler problem 3, get right answer.