Solution#3: Largest prime factor