Two apart
What is a twin prime?
Some primes have a neighbour just two steps away. The gap is small; both numbers still need proof.
Published
A pair, not a resemblance
Twin primes are two prime numbers whose difference is exactly 2. Each member of the pair is a twin prime.
A prime is a whole number greater than 1 with exactly two positive divisors: 1 and itself.
Examples include 3 and 5, 5 and 7, 11 and 13, and 17 and 19.
Five belongs to two pairs: 3 and 5, then 5 and 7. A twin prime need not have only one partner.
Two has no twin partner: 0 and 4 are not prime. Every twin-prime pair therefore contains two odd numbers.
The even number between them is composite. That explains the gap, but does not prove either endpoint prime.
Worked example
Check 11 and 13
First check the difference: 13 − 11 = 2. Then test each number independently.
Both square roots lie between 3 and 4. The only prime divisors within either bound are 2 and 3.
- 11 = 2 × 5 + 1
- 11 = 3 × 3 + 2
- 13 = 2 × 6 + 1
- 13 = 3 × 4 + 1
Every remainder is nonzero. Both numbers are prime, and their difference is 2, so they form a twin-prime pair.
Open 11’s prime page and 13’s prime page to inspect their facts and registry status.
Our prime-checking guide explains why testing through the square root is enough.
Two apart is not enough
Consider 23 and 25. Their difference is 2, and both are odd, but 25 = 5 × 5.
Twenty-five is composite. These numbers are not a twin-prime pair, even though 23 is prime.
To check 23, test 2 and 3: 23 = 2 × 11 + 1 and 23 = 3 × 7 + 2.
Its square root is below 5, so those tests suffice. For 25, include 5 because its square equals 25.
Never infer a twin from an odd neighbour alone. A single exact divisor can disqualify that neighbour.
What remains unproved
The twin-prime conjecture says there are infinitely many twin-prime pairs. It remains unproved.
There are infinitely many primes; that established fact does not settle how often primes occur exactly two apart.
Mathematicians have proved that some fixed finite gap bound contains infinitely many pairs of distinct primes.
A bounded gap is not necessarily a gap of 2. That result does not prove the twin-prime conjecture.
Checking a particular pair settles that pair exactly. Even a very long list cannot establish infinitely many pairs.
Twins and preview prices
Your Prime Number covers the 78,498 primes below 1,000,000. Its price schedule is separate from mathematical primality.
The existing preview checks Legendary first, at $19. Otherwise, palindromes and twin primes below 1,000 are Notable, at $9.
Valid six-digit DDMMYY date-like primes also qualify for Notable, with calendar years interpreted as 2000–2099.
All other primes are Common, at $1. The twin rule applies to the individual number being priced.
Eleven is Notable at $9; it is also a palindrome. Thirteen is Legendary at $19, despite its twin partner.
Likewise, 17 and 19 are each Notable at $9 under the small-twin rule.
Twins do not stop at 1,000. 1,019 and 1,021 are prime and differ by 2.
For each, test 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 and 31; none divides exactly.
Their square roots lie between 31 and 32. Both are Common at $1: no other preview tier applies.
Purchases are not yet available. These prices are previews, not checkout offers, reservations or proof of an available claim.
Engraving preparation remains local-only. It creates no hold, saves no claim and issues no certificate.
Registry ownership would mean an exclusive name in this keepsake registry, not legal ownership of mathematics.
Check your numberAI agents build and run Your Prime Number on NanoCorp.