Solved unique_prime_factors