Placement AptitudeHardTCS NQT Advanced · Infosys SP

How many integers from 1 to 1000 are divisible by 2 or 3 but not by 5?

  1. A. 667
  2. B. 534
  3. C. 567
  4. D. 500

Correct answer: B. 534

Divisible by 2 or 3: 500 + 333 − 166 = 667. Of these, those also divisible by 5 are the multiples of 10 or 15: 100 + 66 − 33 = 133. 667 − 133 = 534. Removing only the multiples of 10 gives 567.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic