Despojados
Time limit1sMemory limit1024 MB
Count the divisors of N that are squarefree and have at least two prime factors.
- Level
Medium5 of 10
- Topics
- Number theory, Combinatorics, Math
- Solved
- No attempts yet
Problem
Every positive integer can be written as a product of prime powers. For example, .
An integer is despojado if it can be written as a product of two or more distinct primes with no prime used twice. For example, and are despojado. On the other hand is not, because the prime is used twice, and neither nor is despojado.
You are given an integer . Count the divisors of that are despojado.
Input
The first line contains an integer ().
Output
Print the number of despojado divisors of on a single line.