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?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
Expand (p+2)³ − p³ = 6p² + 12p + 8 and complete the square: (p+1)² = 5184 = 72², so the primes are 71 and 73.
Solution
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 .
Why this works
A difference of two cubes whose bases differ by a constant is a quadratic in the base, and here it completes the square exactly. Recognizing (from and ) makes the equation instant. Then read the question again: it asks about the next prime, not the pair.
Alternative approach
Estimate: , so and . The only twin-prime pair near is ; a quick check confirms it.
The trap
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.
Common mistakes
- 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.
- An arithmetic slip in the expansion (e.g. writing ) that makes the square fail to complete.
Techniques
Apply an identity: SFFT, sum of squares, difference of cubes, Vieta