## Sum of element whose prime factors are present in array

Given an array arr[] of non-negative integers where 2 ≤ arr[i] ≤ 106. The task is to find the sum of all those elements from… Read More »

## Largest palindromic prime in an array

Given an array arr[] of integers, the task is to print the largest palindromic prime from the array. If no element from the array is… Read More »

## Count the numbers < N which have equal number of divisors as K

Given two integers N and K, the task is to count all the numbers < N which have equal number of positive divisors as K.… Read More »

## Check if the sum of primes is divisible by any prime from the array

Given an array arr[], the task is to check whether the sum of primes in the array is divisible by any of the primes in… Read More »

## Sum of elements in an array having prime frequency

Given an array arr, the task is to find the sum of the elements which have prime frequencies in the array. Note: 1 is neither… Read More »

## Common prime factors of two numbers

Given two integer and , the task is to find the common prime divisors of these numbers. Examples: Input: A = 6, B = 12… Read More »

## Check whether the sum of prime elements of the array is prime or not

Given an array having N elements. The task is to check if the sum of prime elements of the array is prime or not. Examples:… Read More »

## Check if a prime number can be expressed as sum of two Prime Numbers

Given a prime number . The task is to check if it is possible to express as sum of two separate prime numbers. Note: The… Read More »

## Smallest prime number missing in an array

Given an array containing n distinct numbers. The task is to find the smallest prime which is not present in the array. Note: If there… Read More »

## Find a number that divides maximum array elements

Given an array A[] of N non-negative integers. Find an Integer greater than 1, such that maximum array elements are divisible by it. In case… Read More »

## Sum and product of k smallest and k largest prime numbers in the array

Given an integer k and an array of integers arr, the task is to find the sum and product of k smallest and k largest… Read More »

## Sum of every K’th prime number in an array

Given an integer k and an array of integers arr (less than 10^6), the task is to find the sum of every k’th prime number… Read More »

## Find the super power of a given Number

Given an integer . The task is to find the superpower from the factorization of . The Superpower is the highest power among the power… Read More »

## Sum and Product of all Composite numbers which are divisible by k in an array

Given an array arr[] of N positive integers. The task is to find the sum of all composite elements which are divisible by a given… Read More »

## Count of Prime Nodes of a Singly Linked List

Given a singly linked list containing N nodes, the task is to find the total count of prime numbers. Examples: Input: List = 15 ->… Read More »