Euler Problem 4 Solution