Mathematics (JEE)HardCodeforces Div2 D

How many integers n with 1 <= n <= 1000 have exactly 6 positive divisors?

  1. A. 3
  2. B. 292
  3. C. 110
  4. D. 180

Correct answer: C. 110

Numbers with exactly 6 divisors have the form p^5 or p^2 * q (p, q distinct primes); checking n <= 1000 gives 110.

More Permutations, Combinations and Probability questions

Exams that ask this topic