Hello all,

Suppose I have prime factors of a number , from the prime factors how can I find distinct divisors of a number.

Eg :

12 = 2*2*3 ( I have 2,2,3 as prime factors )

I need to find divisors of 12 or atleast Number of distinct divisors of 12 ( 4 in this case )

2,3,4,6