Prime String
Given a String str , the task is to check if the sum of ASCII value of all characters is a Prime Number or not.… Read More »
Given a String str , the task is to check if the sum of ASCII value of all characters is a Prime Number or not.… Read More »
A k-rough or k-jagged number is a number whose smallest prime factor is greater than or equal to the number ‘k’. Given numbers ‘n’ and… Read More »
Given a number ‘n’, check whether it is an emirpimes or not. An emirpimes(“semiprime” when spelled backwards) derives its definition from the way it is… Read More »
Given an array of N integers, the task is to perform the following two queries: query(start, end) : Print the number of prime numbers in… Read More »
Given an array of non-negative integers and range query l, r, find number of prefix sum which are prime numbers in that given range. Prerequisite… Read More »
Given a number n, find the ordered prime signatures and using this find the number of divisor of given n. Any positive integer, ‘n’ can… Read More »
Given an integer n. we need to print all twin prime number pairs between 1 to n. A Twin prime are those numbers which are… Read More »
In mathematics, Bertrand’s Postulate states that there is a prime number in the range to where n is a natural number and n >= 4.… Read More »
In mathematics, Rosser’s Theorem states that the nth prime number is greater than the product of n and natural logarithm of n for all n… Read More »
Given L and R, find a possible non transitive triplet (a, b, c) such that pair (a, b) is coprime and pair (b, c) is… Read More »
It says that there is always one prime number between any two consecutive natural number’s(n = 1, 2, 3, 4, 5, …) square. This is… Read More »
Sum Rule – If a task can be done in one of ways or one of ways, where none of the set of ways is… Read More »
Given a number n, we need to find the product of all of its unique prime factors. Prime factors: It is basically a factor of… Read More »
Given two numbers N and M. Find the number of ways in which factorial N can be expressed as a sum of two or more… Read More »
Given a number n, we need to find the product of all prime numbers between 1 to n. Examples: Input: 5 Output: 30 Explanation: product… Read More »