## Delete all Prime Nodes from a Singly Linked List

Given a singly linked list containing N nodes, the task is to delete all nodes from the list which are prime. Examples: Input : List… Read More »

Given a singly linked list containing N nodes, the task is to delete all nodes from the list which are prime. Examples: Input : List… Read More »

Given a doubly linked list containing N nodes, the task is to delete all nodes from the list which are prime. Examples: Input: List =… Read More »

Given a number N (greater than 2 ). The task is to find two distinct prime numbers whose product will be equal to the given… Read More »

Given a number . The task is to find all such numbers less than N and are a product of exactly two distinct prime numbers.… Read More »

Given a number N. The task is to find the number of co-prime pairs (a, b) from 1 to N such that their product(a*b) is… Read More »

Given an array ‘arr’ of length ‘n’. The task is to find the largest contiguous sub-array having the count of prime numbers strictly greater than… Read More »

Given an integer N. The task is to find all factors of N and print the product of four factors of N such that: Sum… Read More »

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

Given an array. The task is to count the possible pairs which can be formed using the elements of the array where both of the… Read More »

Given a positive integer . The task is to write a C program to check if the number is prime or not. Definition: A prime… Read More »

Given the first term (A) and common difference (D) of an Arithmetic Progression, and a prime number (P). The task is to find the position… Read More »

Find the smallest palindrome number which is prime too and greater then given number N. Examples: Input : N = 7 Output :11 11 is… Read More »

Given two numbers A and B where 1 <= A <= B. The task is to count the number of pairs whose elements are co-prime… Read More »

A Cunningham chain is a sequence of prime numbers. It is of 2 types: Cunningham chain of the first kind: It is a sequence of… Read More »

Given two integers L and R. The task is to find the sum of all prime factors of every number in the range[L-R]. Examples: Input:… Read More »