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

# Tag Archives: Numbers

Given a positive integer N, the task is to find the number of ordered pairs (X, Y) where both X and Y are positive integers,… Read More

Given a numeric string s consisting of digits 0 to 9, the task is to find the length of the largest subsequence consisting of a… Read More

Given an integer N, the task is to count the minimum steps required to reduce the value of N to 0 by performing the following… Read More

Given two integers N and K, the task is to find the count of all possible N-digit numbers having sum of every K consecutive digits… Read More

Given a positive integer N, the task is to find the sum of the product of all the integers in the range [1, N] with their… Read More

Given an integer N, the task is to find two numbers a and b such that a / b = N and a – b… Read More

Given a number N and a prime number P, the task is to find the sum of the largest divisors of each number in the… Read More

Given two numeric Hexadecimal numbers str1 and str2, the task is to add the two hexadecimal numbers. Hexadecimal Number system, often shortened to “hex”, is… Read More

Given two integers N and M, the task is to check if it is possible to obtain these values from X = 1 and Y… Read More

Given an integer N, the task is to check if the concatenation of first N natural numbers is divisible by 3 or not. Print Yes… Read More

Given two integers N and K, the task is to find the total count of N-digit number such that the sum of every K consecutive… Read More

Given an integer N, the task is to find the number of factors of N that are a perfect cube. Examples: Input: N = 27Output:… Read More

Given an integer N, the task is to divide the numbers from 1 to N into two nonempty subsets such that the sum of elements… 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