Project Euler Problem 3 work-in-progress