2005 AMC 12A Problem 18

Attempt Problem 18 of the 2005 AMC 12A 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 2005 AMC 12A solutions, or check the answer key.

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

18.

Call a number “prime-looking” if it is composite but not divisible by 2,2, 3,3, or 5.5. The three smallest prime-looking numbers are 49,49, 77,77, and 91.91. There are 168168 prime numbers less than 1000.1000. How many prime-looking numbers are there less than 1000?1000?
100100
102102
104104
106106
108108
Answer: A
Concepts:inclusion-exclusionprimecounting integers in a range
Small hint:
Use inclusion-exclusion to count the numbers below 10001000 divisible by 2,3,2, 3, or 55
Big hint:
From the numbers coprime to 2,3,5,2, 3, 5, remove the primes and the number 11
Solution:
Among the 999999 numbers from 11 to 999,999, inclusion-exclusion gives 499+333+199−166−99−66+33=733 \begin{aligned} &499 + 333 + 199 - 166 \\ &\quad {}- 99 - 66 + 33 = 733 \end{aligned} that are divisible by 2,3,2, 3, or 5.5.
That leaves 999−733=266999 - 733 = 266 numbers coprime to 2,3,5.2, 3, 5. Of these, 165165 are primes (the 168168 primes minus 2,3,52, 3, 5), and 11 is neither prime nor composite.
The remaining 266−165−1=100266 - 165 - 1 = 100 numbers are prime-looking.
Thus, the correct answer is A.
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.