A positive number without a decimal part
number of positive divisors
Generate all positive and negative divisors of a positive natural number.
Divisors are not generated in order except the negative divisor is yielded first.
Time complexity: O(sqrt(n))
Auxiliary space: O(1)
A positive number without a decimal part
Generate all positive and negative divisors of a positive natural number.
Divisors are generated in increasing order from -n to n.
Time complexity: O(sqrt(n))
Auxiliary space: O(sqrt(n))
A positive number without a decimal part
Generate all positive and negative divisors of a positive natural number.
Divisors are generated in decreasing order from n to -n.
Time complexity: O(sqrt(n))
Auxiliary space: O(sqrt(n))
A positive number without a decimal part
Generate all positive divisors of a positive natural number.
Divisors are not generated in order.
Time complexity: O(sqrt(n))
Auxiliary space: O(1)
A positive number without a decimal part
Generate all positive divisors of a positive natural number.
Divisors are generated in increasing order from 1 to n.
Time complexity: O(sqrt(n))
Auxiliary space: O(sqrt(n))
A positive number without a decimal part
Generate all positive divisors of a positive natural number.
Divisors are generated in decreasing order from n to 1.
Time complexity: O(sqrt(n))
Auxiliary space: O(sqrt(n))
A positive number without a decimal part
Product of positive divisors of a positive natural number.
Time complexity: O(sqrt(n))
Auxiliary space: O(1)
A positive number without a decimal part
product of positive divisors
Total of positive divisors of a positive natural number.
Time complexity: O(sqrt(n))
Auxiliary space: O(1)
A positive number without a decimal part
sum of positive divisors
Generated using TypeDoc
Count number of positive divisors of a positive natural number.
Time complexity: O(sqrt(n))
Auxiliary space: O(1)
n >= 0