Completed Euler Problem 4