Project Euler - Problem 3 - Largest prime factor