2018 AMC 12B Problem 5

Attempt Problem 5 of the 2018 AMC 12B below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2018 AMC 12B solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

5.

How many subsets of {2,3,4,5,6,7,8,9}\{2, 3, 4, 5, 6, 7, 8, 9\} contain at least one prime number?
128128
192192
224224
240240
256256
Answer: D
Concepts:complementary countingsubsets
Small hint:
Count all subsets, then subtract those containing no prime number
Big hint:
The non-primes are {4,6,8,9},\{4,6,8,9\}, so subsets with no prime number are subsets of that set
Solution:
The set has 88 elements, giving 28=2562^8=256 subsets. The subsets with no prime use only the four non-primes {4,6,8,9},\{4,6,8,9\}, and there are 24=162^4=16 of these.
So the number containing at least one prime is 256−16=240.256-16=240.
Thus, the correct answer is D.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.