Primes
Prime properties, prime factorization, counting with primes
PrimesAMC 10 Step by Step
Name: Date: October 28, 2026
Number Theory · 17 problems have this as their main idea
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 a whole number greater than whose only positive divisors are and itself. The number is not prime. Example: is prime; is not.
- The small primes are special. is the only even prime, is the only prime divisible by , and is the only prime ending in .
- Primes above sit next to multiples of . Every prime leaves remainder or when divided by , written . Any other remainder (, , , ) would make divisible by or . Example: and . It only works one way: is not prime.
- Testing whether is prime. Divide by the primes up to ; if none divides , it is prime. (If with both and bigger than , then would be bigger than .) So for , checking is enough. Example: testing , you reach and find .
- Primes below (there are ): .
- If a prime divides a product , then divides or divides . This fails for numbers that aren't prime. Example: divides but divides neither nor .
How AMC 10 tests it
- A quadratic whose roots are both prime, with their sum or product given. An odd sum forces one root to be , since two odd primes add to an even number.
- "For how many primes is (or both and ) also prime?" The answer is almost always or , decided by a small modulus.
- Arranging digits into two-digit primes, or counting primes with a digit condition. This rewards knowing the primes below by heart.
- The smallest prime factor of a large expression such as or , using algebraic factoring.
- These show up as problems 6–18 and test speed and attention to odd and even rather than deep theory.
Standard approaches
- Handle (and often ) separately; every prime left is odd and not a multiple of .
- Work mod , , or . Show that in every case but one, the expression is divisible by a small prime and bigger than it, so it is not prime.
- Factor with algebra before hunting for prime divisors: , the sum of cubes , and . Example: , and , so the smallest prime factor is .
- Use Vieta's Formulas to turn "prime roots" into a sum-and-product condition on two primes.
- When the count is small, list the cases. Know the primes below by heart.
Worked example
How many primes have the property that both and are also prime?
(A) (B) (C) (D) (E) infinitely many
Step 1: remainders mod . leaves remainder and leaves remainder when divided by . So , , leave the same remainders as , , .
Step 2: one is a multiple of . One of any three integers in a row is a multiple of , so one of , , is divisible by . For example, gives , , , and .
Step 3: it must be itself. The only prime divisible by is . Since and are bigger than , the multiple of must be , so .
Step 4: check. and are both prime, so exactly one prime works.
The answer is .
Pitfalls
- Treating as prime, or forgetting that is prime when counting.
- Stopping trial division too early, or going past . Example: stopping at would wrongly call prime, but . To test , you can stop at , since .
- Deciding a number divisible by is not prime without checking that it is bigger than . That is exactly why works above.
- Misremembering the list: and are not prime, while and 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
Open any of them to try it here; the worked solution is on the problem's own page.