Given a natural number n, print all distinct divisors of it.
Examples:
Input : n = 10
Output: 1 2 5 10
Input: n = 100
Output: 1 2 4 5 10 20 25 50 100
...

Share

Given a natural number n, print all distinct divisors of it.
Examples :
Input : n = 10
Outpu...

Share

Given a natural number, calculate sum of all its proper divisors. A proper divisor of a natural number is the divisor that is strictly less than the number.
For exam...

Share

Given three integers a, b, n .Your task is to print number of numbers between a and b including them also which have n-divisors. A number is called n-divisor if it ha...

Share

Given a positive integer n. Find the value of where function F(i) for number i be defined as sum of all divisors of ‘i‘.
Examples :
Input: 4
Output: 1...

Share

Given a number n, count total number of divisors of n!.
Examples:
Input : n = 4
Output: 24
4! is 24. Divisors of 24 are 1, 2, 3, 4, 6,
8, 12 and 24.
Input : n = 5
Ou...

Share

Given a number n, we need to calculate the sum of divisors of factorial of the number.
Examples:
Input : 4
Output : 60
Factorial of 4 is 24. Divisors of 24 are
1 2 3 ...

Share

Given Q queries, of type: L R, for each query you must print the maximum number of divisors that a number x (L <= x <= R) has.
Examples:
L = 1 R = 10:
1 has...

Share