how to find product of prime factors of a number n

Eg:n=75
ans=15
Remember we dont want the product of the factors,we want only the product of prime factors