Data Structures & AlgorithmsVery hardICPC regional · CAT · MBA placement

Problem: The number 2024 is factorised. How many positive integers less than 10000 are divisors of 2024 × 2025?

  1. A. 168
  2. B. 240
  3. C. 31
  4. D. 120

Correct answer: A. 168

2024 = 2³·11·23 and 2025 = 3⁴·5² are coprime, so the product has 16 × 15 = 240 divisors, of which 168 are below 10000. Forgetting the bound gives 240, adding the counts gives 31, and halving 240 wrongly assumes 10000 is the square root.

More Coding Interview Problems questions

Exams that ask this topic