eolymp
bolt
Try our new interface for solving problems
Problems

Number of divisors

Number of divisors

The integer $n$ is given. Find the number of its divisors, excluding divisors $n$ and $1$. \InputFile One positive integer $n~(2 \le n \le 2^{31} - 1)$. \OutputFile Print the number of divisors of $n$.
Time limit 1 second
Memory limit 128 MiB
Input example #1
18
Output example #1
4