## Program to find count of numbers having odd number of divisors in given range

Given two integers A and B. The task is to count how many numbers in the interval [ A, B ] have an odd number… Read More »

Given two integers A and B. The task is to count how many numbers in the interval [ A, B ] have an odd number… Read More »

Given a range, we need to check if is their any pairs in the segment whose GCD is divisible by k. Examples: Input : l=4,… Read More »

Given two integers and . The task is to find the Nth term which is divisible by either of or . Examples : Input :… Read More »

Given an array of integers ‘arr’ and a number x, the task is to sort all the elements which are multiples of x of the… Read More »

Given a number N. The task is to find the sum of all those numbers from 1 to N that are divisible by 2 or… Read More »

Given a number n, find the highest power of 2 that divides n. Examples: Input : n = 48 Output : 16 Highest power of… Read More »

Given an array of integers. The task is to find the maximum count of equal numbers in an array after applying the given operation any… Read More »

Given an array, the task is to find the minimum and maximum elements in the array which is divisible by a given number k. Examples:… Read More »

Given an array containing N elements. Each element is either 0 or 5. Find the largest number divisible by 90 that can be made using… Read More »

Given a positive integer n, check if it is an Ore number or not. Print ‘YES’ if n is an ore number otherwise print ‘NO’.… Read More »

Given a number, the task is to check if a number is divisible by 2, 3 and 5 or not. The input number may be… Read More »

Given a set of ‘N’ digits. The task is to find the maximum integer that we can make from these digits. The resultant number must… Read More »

Given a number N. The task is to check if the sum of digits of the given number divides the number or not. If it… Read More »

Given a number N. The task is to find the sum of all those numbers from 1 to N that are divisible by 3 or… Read More »

Given a Number N, the task is to find the Remainder when N is divided by R (a two digit Number). The input of the… Read More »