Skip to content

Tag Archives: factor

Given an integer N, the task is to find all the factors (excluding itself) of the number N and their XOR. Examples: Input: N =… Read More
Given a positive integer N, the task is to tell whether it’s an anti-prime number or not. Anti-Prime Numbers (Highly Composite Number): A positive integer… Read More
Given an array A[] of size N, the task is to check if all the elements of the array, except 1st element can be made… Read More
Given an integer N, the task is to find the sum of all values of N after repeatedly dividing it with its smallest factor. Examples:… Read More
Given a number N, the task is to print the digits of N which divide N. Example: Input: N = 234Output: 2 3 Input: N… Read More
Given an array A[] of size N, the task is to find the elements in the array which are factors of the sum of the… Read More
Given an integer N and an array arr[] having M integers, the task is to find the maximum size of the subset such that the… Read More
Given a positive integer N, the task is to find the height of the Factor Tree of the given integer N. Examples: Input: N =… Read More
Given two positive integers N and K, the task is to print the Kth largest factor of N.   Input: N = 12, K =… Read More
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

Start Your Coding Journey Now!