## Next smallest prime palindrome

Given a positive integer N where . The task is to find the smallest prime palindrome greater than or equal to N. Examples: Input: 8… Read More »

- Program to find Prime Numbers Between given Interval
- Check if a prime number can be expressed as sum of two Prime Numbers
- Sum of all the prime numbers in a given range
- Delete all Prime Nodes from a Circular Singly Linked List
- Sort only non-prime numbers of an array in increasing order
- Minimum and Maximum prime numbers in an array
- Largest palindromic prime in an array
- Count subarrays with Prime sum
- Count number of integers less than or equal to N which has exactly 9 divisors
- Count of Prime Nodes of a Singly Linked List
- Find the Product of first N Prime Numbers
- Smallest prime number missing in an array
- Sum of all prime numbers in an Array
- Next smallest prime palindrome
- Print all safe primes below N
- Check if the sum of primes is divisible by any prime from the array
- Sum of elements in an array having prime frequency
- Sort prime numbers of an array in descending order
- Number of divisors of product of N numbers
- Print prime numbers with prime sum of digits in an array
- Pair of prime numbers with a given sum and minimum absolute difference
- Sum and product of k smallest and k largest prime numbers in the array
- Maximum GCD of N integers with given product
- Maximum no. of contiguous Prime Numbers in an array
- Minimum absolute difference of a number and its closest prime
- Count pairs in an array such that at least one element is prime
- Print numbers such that no two consecutive numbers are co-prime and every three consecutive numbers are co-prime
- Absolute difference between the Product of Non-Prime numbers and Prime numbers of an Array
- Check if a number is Primorial Prime or not
- Check whether the given number is Wagstaff prime or not

Given a positive integer N where . The task is to find the smallest prime palindrome greater than or equal to N. Examples: Input: 8… Read More »

Given an array arr[] of N elements. The task is to find the maximum number of the contiguous prime numbers in the given array. Examples:… Read More »

Given a singly linked list containing N nodes, the task is to find the minimum and maximum prime number. Examples: Input : List = 15… Read More »

Given an array arr[] of N positive integers. The task is to find the minimum and maximum prime elements in the given array. Examples: Input:… Read More »

Given a singly linked list containing N nodes, the task is to find the sum and product of all nodes from the list which are… Read More »

Given two squares with side lengths and (a > b). The task is to check if difference of their areas is prime or not. Here… Read More »

Given an array of positive numbers, the task is to calculate the absolute difference between product of non-prime numbers and prime numbers. Note: 1 is… Read More »

Given an array of integers ‘arr’, the task is to sort all the prime numbers from the array in descending order in their relative positions… Read More »

Given a number N(1<=N<=109), the task is to find the total number of integers less than equal to n which have exactly 9 divisors. Examples:… Read More »

Given a number N, find the first triangular number whose number of divisors exceeds N. Triangular numbers are sums of natural numbers, i. e., of… Read More »

Given an array of N integers. The task is to print the sorted array such that all numbers that are prime stay in the same… Read More »

Given a range [L, R], the task is to find all possible co-prime pairs from the range such that an element doesn’t appear in more… Read More »

Given a positive integer n, print every Prime Quadruplet below . Prime quadruplet: In mathematics, Prime Quadruplet is a set of four primes of the… Read More »

Given a positive number N, the task is to check if N is a primorial prime number or not. Print ‘YES’ if N is a… Read More »

Given an integer ‘sum’ (less than 10^8), the task is to find a pair of prime numbers whose sum is equal to the given ‘sum’… Read More »