code for finding prime_factors of a given number