now program prints only the largest prime factor