🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Counting: all 10 questions

Quiz: Counting · Question 4 of 10

How many numbers from 1 to 1000 are divisible by 2, 3 or 5 (from the demo)?

How many numbers from 1 to 1000 are divisible by 2, 3 or 5 (from the demo)?

  1. A.266
  2. B.734
  3. C.1000
  4. D.500
Answer & explanation

Correct answer: 734

Inclusion–exclusion gives 734; the remaining 266 are divisible by none of them.

Can you get the rest right without peeking?

Take the timed Quiz: Counting quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →