Find every positive prime p for which p squared plus two is also prime. This original UKMT-style proof exercise has a small answer, but the task is to rule out every other prime rather than list a few numerical examples. The argument uses divisibility by three and must preserve the exceptional case in which a number divisible by three could itself equal three.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send UKMT-S4-1126 and tell us your school year and question.
Inspect examples without treating them as proof
At p equal to two, the expression is six and is composite. At p equal to three, the expression is eleven and is prime. At p equal to five, it is twenty-seven. These calculations suggest that three may be the only solution, but no finite list by itself excludes arbitrarily large primes.
Classify residues for primes other than three
If p is prime and not three, it cannot be divisible by three. Its remainder modulo three is therefore one or two. Squaring either remainder gives one modulo three, because one squared is one and two squared is four. These two possibilities cover every prime other than the stated exception.
Apply the residue information to the whole expression
Adding two to a square with remainder one gives remainder zero. Therefore p squared plus two is divisible by three whenever p is a prime other than three. This is an exact divisibility statement, not merely a pattern seen among the first few numerical tests.
Explain why divisible means composite here
A positive number divisible by three can still be prime if it equals three. However, a positive prime p is at least two, so p squared plus two is at least six and is strictly larger than three. It therefore has three as a proper divisor and cannot be prime. The size check closes the exception that a bare modular statement would leave open.
Return to the excluded input
The residue argument deliberately left out p equal to three, so it must now be checked directly. Three is prime, and three squared plus two equals eleven, also prime. Thus p equal to three is the complete solution. The earlier check of p equal to two is consistent with, but not necessary for, the general exclusion.
Keep assumptions visible when varying the problem
For composite or negative inputs, the question and allowable conclusions would differ. Changing plus two to another constant may also remove the helpful residue. Official UKMT problem resources are linked separately for independent practice. This is an original divisibility proof, not a current-paper solution, and its strength lies in a complete split, an explicit proper-divisor check and a verified exceptional case.
Continue reading: UKMT SMC Reasoning Practice: Square Remainders Can Prove an Integer Equation Impossible.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send UKMT-S4-1126. Include your school year, country or competition region, experience and the question you want to discuss.

On your phone, use the button or save the QR image and scan it within WeChat.
Official information and further reading: Source 1
