Update for euler problem 4