Find largest prime factor of N