Solved largest prime factor challenge