# Tag Archives: factor

Given an array arr[] consisting of N integers, the task is to find the number of pairs, where i ≤ j, such that the sum… Read More
Given a positive integer N, the task is to count the number of integers from the range [1, N] having exactly 5 divisors. Examples: Input:… Read More
Given a positive integer N, the task is to find the number of positive integers whose GCD with the given integer N is the number… Read More
Given a positive integer N, the task is to find the absolute difference of the count of odd and even factors of N. Examples: Input:… Read More
Given an array arr[] consisting of N positive integers, the task is to find the number of array elements whose count of divisors is a… Read More
Given two positive integers A, B, and an array D[] consisting only of digits [0-9], the task is to check if it is possible to… Read More
Given three positive integers M, X, and Y, the task is to find the minimum number of operations required to make X and Y equal… Read More
Given two integers N and K, the task is to check if N can be represented as a sum of K positive integers, where at… Read More
Given integers N, M and P, the task is to check if is possible to find a rectangular area of P sq. units inside a… Read More
Given an array arr[] consisting of N positive integers and an integer K, the task is to find the maximum sum of array elements in… Read More
Given two integers L and R, the task is to calculate the count of numbers from the range [L, R] having exactly 5 distinct positive… Read More
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