Problem 3 (Largest Prime Factor) complete