2022 AMC 10B Problem 13
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?
Show solution without answering
Key insight
Call the primes p and p + 2. Expanding the cubes leads to (p + 1)² = 5184 = 72², so the primes are 71 and 73.
Solution
The two primes differ by , so call them and . Write the cube difference in terms of .
1. Expand. , so
2. Simplify. Subtract : . Divide by : .
3. Make a perfect square. Adding to both sides turns the left side into :
4. Take the square root. and , so and . The primes are and , and both really are prime.
5. Read the question again. It asks for the smallest prime bigger than both, so find the next prime after :
- are even;
- ends in ;
- ;
- has no factor or (and , so no more checks are needed). It is prime.
6. Digit sum. .
The answer is .
Why this works
When two numbers differ by a fixed amount, the difference of their cubes is only a quadratic in the smaller one, and here it becomes a perfect square after adding . Knowing squares near makes the root quick. Last-step traps are common, so always reread what the question actually asks for.
Alternative approach
Estimate first. The difference is about , so , giving and near . The prime pair differing by near there is . Check: .
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
Call the primes and . Expand the difference of cubes:
So , and dividing by gives . Complete the square:
hence and the primes are and (both prime, as required).
The next prime after : are even or end in ; ; is even; is prime.
The digit sum of is .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 2: Primes and Composites
- Introduction to Algebra, Chapter 11: Special Factorizations (§11.2, §11.3, §11.5)
- Introduction to Number Theory, Chapter 4: Prime Factorization (§4.2, §4.4)
- Introduction to Algebra, Chapter 22: Special Manipulations
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.