Project Euler Problem 16 Final