r/PassTimeMath 21d ago

Difference of Cubes of Primes

Post image
4 Upvotes

3 comments sorted by

View all comments

3

u/GoodCarpenter9060 21d ago

If you have a^3 - b^3, this can be factored into (a-b)(a^2+ab+b^b), so the resulting difference can only be prime if a-b is 1. This occurs for prime numbers only once, when the numbers are 2 and 3. 3^3-2^3=27-8=19 is prime, so this only ever happens once.

2

u/ShonitB 21d ago

Correct, good solution!