2005 AMC 12A Problem 18

Below is the professionally curated solution for Problem 18 of the 2005 AMC 12A, 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 of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:inclusion-exclusionprimecounting integers in a range

Difficulty rating: 1950

18.

Call a number "prime-looking" if it is composite but not divisible by 2,3,2, 3, or 5.5. The three smallest prime-looking numbers are 49,77,49, 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

Solution:

Among the 999999 numbers from 11 to 999,999, inclusion-exclusion gives 499+333+1991669966+33=733 499 + 333 + 199 - 166 - 99 - 66 + 33 = 733 that are divisible by 2,3,2, 3, or 5.5.

That leaves 999733=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 2661651=100266 - 165 - 1 = 100 numbers are prime-looking.

Thus, the correct answer is A.

Problem 18 in Other Years