#t483. 因数个数

因数个数

Counting Divisors

Problem Description

Given a positive integer nn (1≤n≤2×1091 \le n \le 2 \times 10^9), output the number of positive divisors of nn, including 11 and nn itself.

Input Format

One positive integer nn.

Output Format

One integer: the number of divisors of nn.

Sample Input

10

Sample Output

4

Constraints

1≤n≤2×1091 \le n \le 2 \times 10^9.

Hint

  • You only need to check divisors up to n\sqrt{n}: each ii that divides nn contributes one divisor ii and, unless i=n/ii = n/i, another divisor n/in/i.