Number System

Twin Primes

Students point to two highlighted stones with one neutral stone between them.

Twin Primes definition

Twin primes are two prime numbers whose difference is 2.

In Spanish
primos gemelos
Topic
Prime numbers and number theory

Twin Primes in a picture

Twin Primes diagramThe primes 17 and 19 form a twin pair because their difference is 2.First prime: 17Check that 17 is primeSecond prime: 19Check that 19 is primeGap: 19 − 17 = 2The two numbers are twin primes
The primes 17 and 19 form a twin pair because their difference is 2.

How it works

Examples include 5 and 7, and 17 and 19. Their difference is the smallest possible gap between two distinct odd primes. A candidate pair must contain two primes. When both numbers exceed 3, their midpoint is a multiple of 6.

Worked examples

Are 11 and 13 twin primes?

Yes. Both are prime and 13 − 11 = 2.

Are 19 and 21 twin primes?

No. Although the gap is 2, 21 is composite.

Find the midpoint of twin primes 29 and 31.

The midpoint is 30, a multiple of 6.

Common mistake

Check primality for both numbers before checking their difference.

Quick check

Which pair consists of twin primes?

Is a difference of 4 a twin-prime gap?

Show answer

No. A twin pair has difference 2.

Are 3 and 5 twin primes?

Show answer

Yes.

Sources

Flashcard

Twin Primes

Reveal the definition

Twin primes are two prime numbers whose difference is 2.

Effortless Math. “Twin Primes.” Math Dictionary.