Tag Archives: factor

Given an array arr[] consisting of N positive integers, the task is to find the sum of factors of product of all array elements. Since… Read More
Given a positive integer N, the task is to construct the longest sorted sequence of unique elements whose LCM of the is equal to N.… Read More
Given a positive integer N, the task is to generate two arrays of length N such that the same-indexed elements of both the arrays are… Read More
Given two positive integers N and K, the task is to find the value of N after incrementing the value of N in each operation… Read More
Given an array arr[], the task is to check if all the pairs of an array are coprime to each other. All pairs of an… 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 two integers N and K, the task is to find K pair of factors of the number N such that the GCD of each… Read More
Given an integer N, the task is to find the total number of multiplicative partition for N. Multiplicative Partition: Number of ways of factoring of… Read More
Given an integer N, the task is to find the maximum possible GCD among all pair of integers with product N.Examples: Input: N=12 Output: 2 Explanation: All possible… 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 two numbers N and K, the task is to find the minimum value X such that N < X*K.Examples:  Input: N = 8, K… Read More
Given an integer N, the task is to count the number of square-free divisors of the given number. A number is said to be square-free,… Read More
Given an array arr[] of N positive integers, the task is to count the number of array elements which can be expressed as the product… Read More
Given an integer array arr[] of size N, the task is to find the minimum number of array elements required to be divided by 2,… Read More
Given a number N, the task is to find a pair of integers in the range [2, N] with maximum GCD. Examples: Input: N =… Read More