[algorithm] Algorithm to find Largest prime factor of a number