Find the largest prime factor of given number(Project Euler)