Skip to content

Tag Archives: factor

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,… 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 = 10 Output:… Read More
Given an array A[] of N integers, the task is to generate an array B[] such that B[i] contains the count of indices j in… Read More
Given an integer N, the task is to make an array of unique elements of length N such that all subarrays sum modulo N equals… Read More
Given an even number N, the task is to find the greatest possible odd factor of N. Examples:  Input: N = 8642 Output: 4321 Explanation: Here, factors of… Read More
Given a positive integer N, the task is to find the count of pairs of integers (x, y) whose difference of squares is equal to… Read More
Given N positive integers A1, A2, …, AN, the task is to determine the parity of the expression S. For the given N numbers, the expression… Read More
Given an integer N, the task is to find two non-negative integers A and B, such that A2 – B2 = N. If no such… Read More
Given two positive numbers A and B. The task is to print all the Panarithmic Number between two numbers (inclusively). Panarithmic Numbers or Practical number is… Read More
Given an array of integers arr, the task is to calculate the number of pairs (i, j) where i < j such that arr[j] %… Read More

Start Your Coding Journey Now!