## Count all perfect divisors of a number

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 »

## Find sum of divisors of all the divisors of a natural number

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 »

## Find numbers with K odd divisors in a given range

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 »

## Querying maximum number of divisors that a number in a given range has

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 »

## Common Divisors of Two Numbers

Given two integer numbers, the task is to find count of all common divisors of given numbers? Examples : Input : a = 12, b… Read More »

## Java Program for Common Divisors of Two Numbers

Given two integer numbers, the task is to find the count of all common divisors of given numbers? Input : a = 12, b =… Read More »

## C++ Program for Common Divisors of Two Numbers

Given two integer numbers, the task is to find the count of all common divisors of given numbers. Input : a = 12, b =… Read More »

## Sum of all proper divisors of a natural number

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 »

## Count Divisors of Factorial

Given a number n, count total number of divisors of n!. Examples: Input : n = 4 Output: 24 4! is 24. Divisors of 24… Read More »

## Java Program to Check if count of divisors is even or odd

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 »

## C Program to Check if count of divisors is even or odd

Given a number “n”, find its total number of divisors is even or odd. Examples : Input : n = 10 Output : Even Input:… Read More »

## Check if count of divisors is even or odd

Given a number “n”, find its total number of divisors are even or odd. Examples : Input : n = 10 Output : Even Input:… Read More »

## Find all divisors of a natural number | Set 2

Given a natural number n, print all distinct divisors of it. Examples: Input : n = 10 Output: 1 2 5 10 Input: n =… Read More »

## Find all divisors of a natural number | Set 1

Given a natural number n, print all distinct divisors of it. Examples : Input : n = 10 Output: 1 2 5 10 Input: n… Read More »