Dsa
Math
Hard
Prime Factors Count
Calculate the total count of distinct prime factors of a given integer N. The input contains a single integer N (2 <= N <= 10^9). Output the count of distinct prime factors.
Example Input:
28
Example Output:
2
Key concepts
mathprimefactorization
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now