AMC 10 Step by Step

Topics / Number Theory

Primes

Prime properties, prime factorization, counting with primes

17
primary-topic problems (1.3% of all)
31
more as a secondary topic
Where it appears
7
P1-10
8
P11-15
1
P16-20
1
P21-25

What you need to know

  • A prime is an integer p>1p > 1 whose only positive divisors are 11 and pp. The integer 11 is not prime.
  • 22 is the only even prime; 33 is the only prime divisible by 33; 55 is the only prime ending in 55. Every prime p>3p > 3 satisfies p±1(mod6)p \equiv \pm 1 \pmod 6.
  • To test whether nn is prime, trial-divide by primes up to n\sqrt{n}. For n<289n < 289 it suffices to check 2,3,5,7,11,132, 3, 5, 7, 11, 13.
  • Primes below 100100: 2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,972, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97 (25 in all).
  • If a prime pp divides a product abab, then pap \mid a or pbp \mid b.

How AMC 10 tests it

  • A quadratic whose roots are both prime, with the sum or product given: an odd sum forces one root to be 22.
  • "For how many primes pp is p2+cp^2 + c (or p+ap + a and p+bp + b) also prime?" The answer is almost always 00 or 11, decided by a small modulus.
  • Arrange digits into two-digit primes, or count primes with a digit condition; this rewards knowing the list below 100100 cold.
  • Problems on the smallest prime factor of a large expression such as 22012^{20} - 1 or n!+1n! + 1, using algebraic factorization.
  • These appear at problems 6–18 and test speed and parity awareness rather than deep theory.

Standard approaches

  1. Handle 22 (and often 33) separately; then every remaining prime is odd and not a multiple of 33.
  2. Reduce modulo 33, 44, or 66: show every case except one makes the expression divisible by a small prime and larger than it.
  3. Factor algebraically (a2b2a^2 - b^2, sum of cubes, x4+4y4x^4 + 4y^4) before hunting for prime divisors.
  4. Use Vieta's formulas to turn "prime roots" into a sum-and-product condition on two primes.
  5. When the count is small, just list; know the primes below 100100 cold.

Worked example

How many primes pp have the property that both p+10p + 10 and p+14p + 14 are also prime?

(A) 00 (B) 11 (C) 22 (D) 33 (E) infinitely many

Consider residues modulo 33. Since 10110 \equiv 1 and 142(mod3)14 \equiv 2 \pmod 3, the three numbers pp, p+10p+10, p+14p+14 are congruent to pp, p+1p+1, p+2p+2, which cover all three residues. So one of them is divisible by 33. A prime divisible by 33 must equal 33; since p+10>3p + 10 > 3 and p+14>3p + 14 > 3, the only possibility is p=3p = 3. Check: 1313 and 1717 are prime. Exactly one prime works, so the answer is (B) 1\boxed{\textbf{(B)}\ 1}.

Pitfalls

  • Treating 11 as prime, or forgetting that 22 is prime when counting.
  • Stopping trial division too early, or too late: check primes up to n\sqrt{n} only.
  • Concluding "divisible by 33" means composite without confirming the number exceeds 33.
  • Misremembering the list: 91=71391 = 7 \cdot 13 and 57=31957 = 3 \cdot 19 are not prime, while 9797 and 8989 are.

Traps that recur

  • Taking b_1 = 60 (so 61!/60! = 61) without checking whether a smaller b_1 still lets the leftover primes cancel. (2013 AMC 10B #20)
  • Missing that the two factors must have the same parity, and then wasting time on pairs like 1 x 48 or 3 x 16, or accepting q = 8 or p = 1 as prime. (2005 AMC 10A #24)
  • Stopping at the primes 71 and 73 and reporting a digit sum of one of them (8 or 10), instead of the next prime 79. (2022 AMC 10B #13)
  • Testing only p = 2 and p = 3 and picking the first expression that looks composite, without checking the other choices produce a prime for some p. (2018 AMC 10B #11)

Problems, easiest first

2024 AMC 10A · #5Primes

What is the least value of nn such that n!n! is a multiple of 20242024 ?

2020 AMC 10B · #4Primes

The acute angles of a right triangle are aa^{\circ} and bb^{\circ} , where a>ba>b and both aa and bb are prime numbers. What is the least possible value of bb ?

2024 AMC 10A · #3Primes

What is the sum of the digits of the smallest prime that can be written as a sum of 55 distinct primes?

2022 AMC 10B · #6Primes

How many of the first ten numbers of the sequence 121,11211,1112111,121, 11211, 1112111, \ldots are prime numbers?

2021 AMC Fall 10B · #8Primes

The greatest prime number that is a divisor of 16,38416{,}384 is 22 because 16,384=21416{,}384 = 2^{14} . What is the sum of the digits of the greatest prime number that is a divisor of 16,38316{,}383 ?

2021 AMC Fall 10A · #5Primes

The six-digit number 20210A\underline{2}\,\underline{0}\,\underline{2}\,\underline{1}\,\underline{0}\,\underline{A} is prime for only one digit A.A. What is A?A?

2015 AMC 10B · #11Primes

Among the positive integers less than 100100 , each of whose digits is a prime number, one is selected at random. What is the probability that the selected number is prime?

2002 AMC 10B · #6Primes

For how many positive integers nn is n23n+2n^2 - 3n + 2 a prime number?

2002 AMC 10A · #15Primes

Using the digits 1, 2, 3, 4, 5, 6, 7, and 9, form 4 two-digit prime numbers, using each digit only once. What is the sum of the 4 prime numbers?

2000 AMC 10 · #11Primes

Two different prime numbers between 44 and 1818 are chosen. When their sum is subtracted from their product, which of the following numbers could be obtained?

2022 AMC 10B · #13Primes

The positive difference between a pair of primes is equal to 22 , and the positive difference between the cubes of the two primes is 3110631106 . What is the sum of the digits of the least prime that is greater than those two primes?

2018 AMC 10B · #11Primes

Which of the following expressions is never a prime number when pp is a prime number?

2003 AMC 10A · #14Primes

Let nn be the largest integer that is the product of exactly 3 distinct prime numbers dd , ee , and 10d+e10d+e , where dd and ee are single digits. What is the sum of the digits of nn ?

2002 AMC 10B · #15Primes

The positive integers A,B,AB,A, B, A-B, and A+BA+B are all prime numbers. The sum of these four primes is

2002 AMC 10A · #14Primes

Both roots of the quadratic equation x263x+k=0x^2 - 63x + k = 0 are prime numbers. The number of possible values of kk is

2013 AMC 10B · #20Primes

The number 20132013 is expressed in the form 2013=a1!a2!am!b1!b2!bn!,2013=\frac{a_1!a_2!\cdots a_m!}{b_1!b_2!\cdots b_n!}, where a1a2ama_1\ge a_2\ge\cdots\ge a_m and b1b2bnb_1\ge b_2\ge\cdots\ge b_n are positive integers and a1+b1a_1+b_1 is as small as possible. What is a1b1|a_1-b_1| ?

2005 AMC 10A · #24Primes

For each positive integer m>1m > 1 , let P(m)P(m) denote the greatest prime factor of mm . For how many positive integers nn is it true that both P(n)=nP(n) = \sqrt{n} and P(n+48)=n+48P(n+48) = \sqrt{n+48} ?