## Largest factor of a given number which is a perfect square

Given a number . The task is to find the largest factor of that number which is a perfect square. Examples: Input : N =… Read More »

- Check if a prime number can be expressed as sum of two Prime Numbers
- Sum of all the prime numbers in a given range
- Find a number that divides maximum array elements
- Minimum and Maximum prime numbers in an array
- Largest factor of a given number which is a perfect square
- Largest palindromic prime in an array
- 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
- Check if a number is a Trojan Number
- 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
- Sum of element whose prime factors are present in array
- 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 no. of contiguous Prime Numbers in an array
- Count pairs in an array such that at least one element is prime
- Common prime factors of two numbers
- Check if a number is Primorial Prime or not
- Product of all prime numbers in an Array
- Numbers in range [L, R] such that the count of their divisors is both even and prime
- Smallest Special Prime which is greater than or equal to a given number
- Find maximum operations to reduce N to 1
- Sum of every K’th prime number in an array

Given a number . The task is to find the largest factor of that number which is a perfect square. Examples: Input : N =… 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 Number . The task is to check if N is a Trojan Number or not. Trojan Number is a number that is a… 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 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 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 »

Given a number N, the task is to print the Kth prime number greater than N. Note: N and K are so given such that… Read More »

Given an array of integers where all the elements are less than 10^6. The task is to find the difference between the largest and the… Read More »

Given a range [L, R], the task is to find the numbers from the range which have the count of their divisors as even as… Read More »

Given an array of integers (less than 10^6), the task is to find the sum of all the prime numbers which appear after every (k-1)… Read More »

Given an array arr[] of N positive integers. The task is to write a program to find the sum of all prime elements in the… Read More »

Given an array arr[] of N positive integers. The task is to write a program to find the product of all the prime numbers of… Read More »

Given a range [l, r], the task is to find the sum of all the prime numbers within that range. Examples: Input : l=1 and… Read More »