solve largest prime factor