GATE Computer ScienceHardGATE CS · ISRO

How many integers from 1 to 1000 are relatively prime to 30?

  1. A. 260
  2. B. 272
  3. C. 266
  4. D. 250

Correct answer: C. 266

Inclusion–exclusion over 2, 3 and 5: 1000 − 500 − 333 − 200 + 166 + 100 + 66 − 33 = 266.

More Discrete Mathematics questions

Exams that ask this topic