Final largest prime factor solution