Count Distinct Prime Factors

Computer Mathematics Medium 3 views
Back to Questions

Problem Description

Given n, print how many distinct primes divide it.

Input Format

One integer n.

Output Format

One integer count.

Sample Test Case

Input:
72
Output:
2

Constraints

2

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next