Tag Archives: divisors

Given a number n, count all distinct divisors of it. Examples: Input : 18 Output : 6 Divisors of 18 are 1, 2, 3, 6,… Read More
Given a number n, count total perfect divisors of n. Perfect divisors are those divisors which are square of some integer. For example a perfect… Read More
Given a natural number n, the task is to find sum of divisors of all the divisors of n. Examples: Input : n = 54… Read More
Given two numbers a and b, and a number k which is odd. The task is to find all the numbers between a and b… Read More
Given Q queries, of type: L R, for each query you must print the maximum number of divisors that a number x (L <= x… Read More
Given two integer numbers, the task is to find the count of all common divisors of given numbers. Input : a = 12, b =… Read More
Given two integer numbers, the task is to find the count of all common divisors of given numbers? Input : a = 12, b =… Read More
Given two integer numbers, the task is to find count of all common divisors of given numbers? Examples :  Input : a = 12, b… Read More
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… Read More
Given a number n, count the total number of divisors of n!. Examples:  Input : n = 4Output: 8Explanation:4! is 24. Divisors of 24 are… Read More
Given a number “n”, find its total number of divisors is even or odd. Examples : Input : n = 10 Output : Even Input:… Read More
Given a number “n”, find its total number of divisors is even or odd. Examples: Input: n = 10 Output: Even Input: n = 100… Read More
Given a number “n”, find its total number of divisors are even or odd. Examples : Input : n = 10 Output : Even Input:… Read More
Given a natural number n, print all distinct divisors of it. Examples:  Input : n = 10 Output: 1 2 5 10 Input: n =… Read More
Given a natural number n, print all distinct divisors of it. Examples: Input : n = 10 Output: 1 2 5 10 Input: n =… Read More