Distinct Prime Factors
How many distinct primes divide N?
Input: one integer N.
Output: the count of distinct prime factors.
Constraints:
- 2 ≤ N ≤ 1012
Sample Tests
Input 1
60
Output 1
3
Input 2
8
Output 2
1
Discussion (opens after you solve — no spoilers before)
No comments yet.