added largest prime factor solution