this is a solution for finding the largest prime factor of large integer