
上QQ阅读APP看书,第一时间看更新
14. Unique prime factors
A number's unique prime factors are the set of the number's prime factors with duplicates removed. For example, the prime factors of 360 are {2, 2, 2, 3, 3, 5}. Its unique prime factors are {2, 3, 5}.
Write a program that finds a number's unique prime factors.