Find the largest prime factor of a given number