Updated LargestPrimeFactor problem