Adding function to get prime divisors