Topics / Number Theory
Primes
Prime properties, prime factorization, counting with primes
What you need to know
- A prime is an integer whose only positive divisors are and . The integer is not prime.
- is the only even prime; is the only prime divisible by ; is the only prime ending in . Every prime satisfies .
- To test whether is prime, trial-divide by primes up to . For it suffices to check .
- Primes below : (25 in all).
- If a prime divides a product , then or .
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 .
- "For how many primes is (or and ) also prime?" The answer is almost always or , decided by a small modulus.
- Arrange digits into two-digit primes, or count primes with a digit condition; this rewards knowing the list below cold.
- Problems on the smallest prime factor of a large expression such as or , using algebraic factorization.
- These appear at problems 6–18 and test speed and parity awareness rather than deep theory.
Standard approaches
- Handle (and often ) separately; then every remaining prime is odd and not a multiple of .
- Reduce modulo , , or : show every case except one makes the expression divisible by a small prime and larger than it.
- Factor algebraically (, sum of cubes, ) before hunting for prime divisors.
- Use Vieta's formulas to turn "prime roots" into a sum-and-product condition on two primes.
- When the count is small, just list; know the primes below cold.
Worked example
How many primes have the property that both and are also prime?
(A) (B) (C) (D) (E) infinitely many
Consider residues modulo . Since and , the three numbers , , are congruent to , , , which cover all three residues. So one of them is divisible by . A prime divisible by must equal ; since and , the only possibility is . Check: and are prime. Exactly one prime works, so the answer is .
Pitfalls
- Treating as prime, or forgetting that is prime when counting.
- Stopping trial division too early, or too late: check primes up to only.
- Concluding "divisible by " means composite without confirming the number exceeds .
- 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
What is the least value of such that is a multiple of ?
The acute angles of a right triangle are and , where and both and are prime numbers. What is the least possible value of ?
What is the sum of the digits of the smallest prime that can be written as a sum of distinct primes?
How many of the first ten numbers of the sequence are prime numbers?
The greatest prime number that is a divisor of is because . What is the sum of the digits of the greatest prime number that is a divisor of ?
The six-digit number is prime for only one digit What is
Among the positive integers less than , each of whose digits is a prime number, one is selected at random. What is the probability that the selected number is prime?
For how many positive integers is a prime number?
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?
Two different prime numbers between and are chosen. When their sum is subtracted from their product, which of the following numbers could be obtained?
The positive difference between a pair of primes is equal to , and the positive difference between the cubes of the two primes is . What is the sum of the digits of the least prime that is greater than those two primes?
Which of the following expressions is never a prime number when is a prime number?
Let be the largest integer that is the product of exactly 3 distinct prime numbers , , and , where and are single digits. What is the sum of the digits of ?
The positive integers and are all prime numbers. The sum of these four primes is
Both roots of the quadratic equation are prime numbers. The number of possible values of is
The number is expressed in the form where and are positive integers and is as small as possible. What is ?
For each positive integer , let denote the greatest prime factor of . For how many positive integers is it true that both and ?