solution problem3

find largest prime factor of a given number