Given two integers X and Y, the task is to perform the following operations: Find all prime numbers in the range [X, Y]. Generate all… Read More
Tag Archives: Prime Number
Given an integer N and an integer P denoting the product of two primes, the task is to find all possible Square Root of N… Read More
Given three integers L, R, and M, the task is to find the probability of Euler’s Totient Function of a number in the range [L,… Read More
Given an array arr[] of Prime Numbers and a number M, the task is to count the number of elements in the range [1, M]… Read More
Given two integers [L, R], the task is to count the number of Primonacci Numbers in the range [L, R]. Primonacci Series: F(1) = F(2) =… Read More
Given an even number N, the task is to check whether it is a Perfect number or not without finding its divisors. In number theory,… Read More
Given an array arr[] of the size of N followed by an array of Q queries, of the following two types: Query Type 1: Given… Read More
Given two integers N and K, the task is to find K pair of factors of the number N such that the GCD of each… Read More
Problem Description Given two numbers N1 and N2. Find prime numbers between N1 and N2, then Make all possible unique combinations of numbers from the… Read More
Given a string S in the form of a sentence, the task is to find the word from the text with the maximum number of… Read More
Given two integers L and R, the task is to find the number of prime numbers in the range [L, R] that can be represented… Read More
Given an integer N, the task is to find the sum of exponents of prime factors of numbers 1 to N. Examples: Input: N =… Read More
Given a string str and an integer K, the task is to find a string S such that it has exactly K subsequences of given… Read More
Given three integers N, L, and R. The task is to calculate the number of natural numbers in the range [L, R] (both inclusive) which… Read More
Given two numbers L and R, the task is to find the prime numbers between L and R. Examples: Input: L = 1, R =… Read More