Did some more work on a Project Euler solution