Skip to content

Tag Archives: number-theory

Given two integers A, B which are any two terms of an Arithmetic Progression series, and an integer N, the task is to minimize the… Read More
Given an integer N, the task is to check if the Digit Cube limit of an integer arrives at a fixed point or in a… Read More
Given an array arr[] consisting of N integers, the task is to check if any permutation of the array elements exists where the sum of… Read More
Given an integer N, the task is to find the number of prime numbers up to N that can be expressed as a sum of… Read More
Given an integer N, the task is to check whether the Euler’s Totient Function of N and 2 * N are the same or not.… Read More
As we already know, a Binary number system is a number system that has only 2 digits in it, i.e. 0 and 1. Similarly, we… Read More
Given a large number N in the form of a string, the task is to determine the count of distinct numbers that can be formed… Read More
Given two numbers L and R, the task is to find two distinct minimum positive integers X and Y such that whose LCM lies in… Read More
Given an array arr[] of N positive integers and an integer K., The task is to create a set of prime numbers such that the… Read More
Given a number N, the task is to find two numbers a and b such that a + b = N and LCM(a, b) is… Read More
Given an integer N and an integer P denoting the product of two primes, the task is to find all possible Square Root of N… Read More
Given an integer N, the task is to find the sum of exponents of prime factors of numbers 1 to N. Examples: Input: N =… Read More
Given a number N, the task is to count the number of unique digits in the given number. Examples: Input: N = 22342 Output: 2 Explanation:The digits… Read More
Given three positive integers N, A, and B, the task is to check if it is possible to obtain N by adding or subtracting A… Read More
Given a number N, the task is to find the sum of Hamming difference of consecutive numbers from 0 to N.   Hamming Distance between two… Read More

Start Your Coding Journey Now!