## Find the largest twins in given range

Given a range [low..high], print the largest twin numbers in given range (low and high inclusive). Two numbers are twins if they are primes and… Read More »

Given a range [low..high], print the largest twin numbers in given range (low and high inclusive). Two numbers are twins if they are primes and… Read More »

We have to print alternate prime numbers till N. Examples: Input : N = 10 Output : 2 5 Input : N = 15 Output… Read More »

Given array of numbers and a integer x. Find whether it is possible or not to get x by adding elements of given array, we… Read More »

Given two integers L and R. The task is to find the sum of all prime factors of every number in the range[L-R]. Examples: Input:… Read More »

Given a number N. The task is to find the sum of all the prime divisors of N. Examples: Input: 60 Output: 10 2, 3,… Read More »

Given a number N. The task is to print the nearest prime if the number is not prime by making it prime by adding prime… Read More »

Given an array arr[] of n elements and a number K. The task is to determine if it is possible to reach the end of… Read More »

Generate all prime numbers between two given numbers. The task is to print prime numbers in that range. The Sieve of Eratosthenes is one of… Read More »

Given x, k and m. Compute (xxxx…k)%m, x is in power k times. Given x is always prime and m is greater than x. Examples:… Read More »

Given two numbers M and N. The task is to print the number which has the maximum number of distinct prime factors of numbers in… Read More »

Given a number N, find the number of distinct prime factors for all numbers in the range [1, N]. Examples : Input : N =… Read More »

Given an integer N. Find the minimum number of square free divisors. In other words, the factorization of N should comprise of only those divisors… Read More »

Given an array A containing numbers from 2 to N.. A special type of sieving is done on it . The procedure of sieving is… Read More »

Given two integers ‘L’ and ‘R’, write a program to find the total numbers that are having prime number of set bits in their binary… Read More »

Given Q queries. Each query contain a positive integer n. The task is to output the sum of sum of odd number digit contained in… Read More »