Placement AptitudeHardTCS Digital · Infosys SP

How many integers from 1 to 1000 (inclusive) are divisible by none of 2, 3, 5 and 7?

  1. A. 229
  2. B. 238
  3. C. 257
  4. D. 228

Correct answer: D. 228

Inclusion-exclusion over 2,3,5,7 gives 1000 - 500 - 333 - 200 - 142 + 166 + 100 + 71 + 66 + 47 + 28 - 33 - 23 - 14 - 9 + 4 = 228. Using 1000*(1/2)(2/3)(4/5)(6/7) = 228.57 and rounding gives the trap 229.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic