## Count all the numbers less than 10^6 whose minimum prime factor is N

Given a number N which is prime. The task is to find all the numbers less than or equal to 10^6 whose minimum prime factor… Read More »

## Find the largest good number in the divisors of given number N

Given a number N. The task is to find the largest good number in the divisors of given number N. A number X is defined… Read More »

## Find count of Almost Prime numbers from 1 to N

Given a number N. Find number of almost primes from 1 to . A number is called almost if it has exactly two distinct prime… Read More »

## Find two distinct prime numbers with given product

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 »

## Numbers less than N which are product of exactly two distinct prime numbers

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 »

## Sum of Factors of a Number using Prime Factorization

Given a number N. The task is to find the sum of all factors of the given number N. Examples: Input : N = 12… Read More »

## Distinct Prime Factors of Array Product

Given an array of integers.Let us say P is the product of elements of the array. Find the number of of distinct prime factors of… Read More »

## Numbers with sum of digits equal to the sum of digits of its all prime factor

Given a range, the task is to find the count of the numbers in the given range such that the sum of its digit is… Read More »

## N-th prime factor of a given number

Given Q queries which consist of two integers, one is number(1 <= number <= 106) and the other is N., the task is to find… Read More »

## Sum of all prime divisors of all the numbers in range L-R

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 »

## Program to print factors of a number in pairs

Given a number n, the task of the programmer is to print the factors of the number in such a way that they occur in… Read More »

## Stormer Numbers

Given a number ‘n’, the task is to generate the first ‘n’ Stormer numbers. A Stormer Number is a positive integer ‘i’ such that the… Read More »

## Number which has the maximum number of distinct prime factors in the range M to N

Given two numbers M and N. The task is to print the number which has the maximum number of distinct prime factors of numbers in… Read More »

## Number of distinct prime factors of first n natural numbers

Given a number N, find the number of distinct prime factors for all numbers in the range [1, N]. Examples : Input : N =… Read More »

## Queries on sum of odd number digit sums of all the factors of a number

Given Q queries. Each query contain a positive integer n. The task is to output the sum of sum of odd number digit contained in… Read More »