Alternative algorithm for Project Euler problem 3- still horrid and slow.