Find the largest prime factor of a number