this program will slowly find the largest prime factor of a given number