# Sexy prime

A **sexy prime** is a prime number that forms a pair (p, p + 6) with another prime number; both members of such a pair are called sexy primes<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup>. The name is a pun on *sex*, the Latin word for six<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup><sup> • </sup><sup>[2](https://t5k.org/glossary/page.php?sort=SexyPrimes)</sup>. In Japanese the concept is written セクシー素数 (sekushī sosū)<sup>[3](https://www.nli-research.co.jp/report/detail/id%3D56316?site=nli)</sup>. Sexy primes sit alongside twin primes (differing by 2) and cousin primes (differing by 4) in the family of fixed-gap prime pairs<sup>[4](https://www.mdpi.com/1099-4300/20/2/131)</sup>.

| Key fact | Detail |
|---|---|
| Definition | A pair of primes (p, p + 6); the two primes need not be consecutive<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup><sup> • </sup><sup>[5](https://www.opastpublishers.com/open-access-articles/twin-primes-segmented-sieve-of-zakiya-ssoz-explained.pdf)</sup> |
| First pairs | (5, 11), (7, 13), (11, 17), (13, 19), (17, 23), (23, 29), (31, 37), (37, 43), (41, 47), (47, 53)<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup> |
| Expected frequency | Hardy–Littlewood theory predicts about twice as many sexy prime pairs as twin prime pairs below a given bound<sup>[6](https://ford126.web.illinois.edu/sieve2023.pdf)</sup> |
| Largest quintuplet | Exactly one sexy quintuplet exists, (5, 11, 17, 23, 29), because every fifth number of the form 6n ± 1 is divisible by 5<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup> |
| Record triplet | 17484430616589 · 2<sup>54201</sup> − 7 + 6n for n = 0, 1, 2, with 16,330 digits, found by Serge Batalov on 26 June 2024<sup>[7](https://www.pzktupel.de/CPAP/sexyP.php)</sup> |
| Record quadruplet | 35734184537 · 11677#/3 − 9 + 6n for n = 0, 1, 2, 3, with 5,002 digits, found by Serge Batalov on 23 June 2024<sup>[7](https://www.pzktupel.de/CPAP/sexyP.php)</sup> |
| Open status | Whether infinitely many sexy prime pairs exist is unproven; the question is a case of Polignac's conjecture<sup>[8](https://arxiv.org/abs/1409.8361)</sup> |

## Definition and examples

Sexy primes are pairs of primes of the form (p, p + 6)<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup>. The definition does not require the two primes to be consecutive: in the academic usage, any two primes that differ by 6 form a sexy pair even when another prime lies between them, so (5, 11) counts as the first sexy pair although 7 sits between them<sup>[5](https://www.opastpublishers.com/open-access-articles/twin-primes-segmented-sieve-of-zakiya-ssoz-explained.pdf)</sup>. Writers who count only consecutive primes obtain different tallies; one sieve-based count finds 47 sexy pairs among the first 100 primes under the academic definition but only 25 pairs of *consecutive* primes differing by 6<sup>[5](https://www.opastpublishers.com/open-access-articles/twin-primes-segmented-sieve-of-zakiya-ssoz-explained.pdf)</sup>.

The first few pairs are (5, 11), (7, 13), (11, 17), (13, 19), (17, 23), (23, 29), (31, 37), (37, 43), (41, 47), and (47, 53)<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup>. A prime can belong to two pairs at once: 11 pairs with both 5 and 17, and 13 with both 7 and 19<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup>. Up to 1000, the primes that belong to two sexy pairs are 11, 13, 17, 53, 103, 107, 157, 173, 257, 263, 373, 563, 593, 607, 653, 733, 947, and 977<sup>[9](https://pkalika.in/wp-content/uploads/2015/09/gaps-in-prime-no-s-2013.pdf)</sup>.

## Why gap 6 is special

Every prime larger than 3 is congruent to either 1 or 5 modulo 6, since numbers of the other residue classes are divisible by 2 or 3. This structure makes gaps of size 6, and multiples of 6, much more frequent among consecutive primes than a random model of the primes would predict<sup>[10](https://www.sciencedirect.com/science/article/pii/S0378437107005389)</sup>. A pair of primes with gap 6 comes in two shapes, (6n − 1, 6n + 5) and (6n + 1, 6n + 7), and together these shapes are expected to account for about half of the close prime pairs<sup>[10](https://www.sciencedirect.com/science/article/pii/S0378437107005389)</sup>.

The same arithmetic explains the limits on longer chains. In any string p, p + 6, p + 12, p + 18, p + 24 of five numbers spaced by 6, one member must be divisible by 5, because 5 and 6 are coprime; only the string starting at 5 survives, since 5 itself is prime. This is why (5, 11, 17, 23, 29) is the single sexy quintuplet and no sextuplet or longer chain exists<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup>. Sexy quadruplets, by the same divisibility argument, can only begin with a prime whose final digit is 1<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup>.

## The Hardy–Littlewood prediction

The Hardy–Littlewood prime-pair conjecture predicts, for any fixed even gap h, an asymptotic count of prime pairs (p, p + h) governed by a singular series constant<sup>[11](https://www.cambridge.org/core/journals/mathematical-proceedings-of-the-cambridge-philosophical-society/article/correlations-of-almost-primes/08F8E4E4C36F68ED6DDA373CCAF7A221)</sup>. For the pair (n, n + 6) the singular series equals 2C, where C ≈ 1.32 is the twin prime constant, because the offsets 0 and 6 occupy only one residue class modulo 2 and one modulo 3 rather than two<sup>[6](https://ford126.web.illinois.edu/sieve2023.pdf)</sup>. The prediction is therefore that there are about twice as many sexy prime pairs as twin prime pairs below any large bound x<sup>[6](https://ford126.web.illinois.edu/sieve2023.pdf)</sup>. The factor 2 reflects the two admissible residue patterns (6n − 1, 6n + 5) and (6n + 1, 6n + 7) available to a gap-6 pair, against the single pattern (6n − 1, 6n + 1) available to twins<sup>[10](https://www.sciencedirect.com/science/article/pii/S0378437107005389)</sup>.

Explicit counting formulas for pairs with difference m ≥ 6, covering the sexy case, have been proposed in the analytic literature<sup>[12](https://umj.imath.kiev.ua/index.php/umj/article/view/7567)</sup>.

## Sexy constellations

The pair concept extends to longer constellations in which consecutive members differ by 6<sup>[3](https://www.nli-research.co.jp/report/detail/id%3D56316?site=nli)</sup>:

- **Sexy triplets** (p, p + 6, p + 12) with p + 18 composite begin (7, 13, 19), (17, 23, 29), (31, 37, 43), (47, 53, 59)<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup>.
- **Sexy quadruplets** (p, p + 6, p + 12, p + 18) begin (11, 17, 23, 29), (41, 47, 53, 59), (61, 67, 73, 79), (251, 257, 263, 269)<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup>.
- **Sexy quintuplets** exist only as (5, 11, 17, 23, 29)<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup>.

Computational records for these constellations have grown steadily. The largest known sexy prime triplet, found by Serge Batalov in June 2024, has 16,330 digits; the largest known quadruplet, also from June 2024, has 5,002 digits<sup>[7](https://www.pzktupel.de/CPAP/sexyP.php)</sup>. For pairs, a 10,154-digit example found by M. Fleuren, T. Alm, and J. K. Andersen was reported in November 2005<sup>[1](https://mathworld.wolfram.com/SexyPrimes.html)</sup>.

## What is known and what is not

Whether infinitely many sexy prime pairs exist is an open question, a special case of [Polignac's conjecture](https://www.edgepedia.org/polignacs-conjecture) of 1849, which asserts that every even gap occurs infinitely often between primes<sup>[8](https://arxiv.org/abs/1409.8361)</sup><sup> • </sup><sup>[13](https://arxiv.org/abs/2210.15487)</sup>. No proof is known even for twin primes, the gap-2 case<sup>[8](https://arxiv.org/abs/1409.8361)</sup>.

Progress has come through bounded-gap results rather than exact gaps. [Yitang Zhang](https://www.edgepedia.org/yitang-zhang) proved in 2013 that some finite bound recurs infinitely often between consecutive primes, initially 70,000,000; the Polymath8 project and James Maynard reduced the unconditional bound to 246, so infinitely many pairs of consecutive primes differ by at most 246<sup>[8](https://arxiv.org/abs/1409.8361)</sup>. Under the generalized Elliott–Halberstam conjecture the bound falls to 6, which would prove that at least one of the gaps 2, 4, or 6 occurs infinitely often, though still not which one<sup>[8](https://arxiv.org/abs/1409.8361)</sup>.

## References

1. [Weisstein, Eric W. "Sexy Primes." MathWorld](https://mathworld.wolfram.com/SexyPrimes.html)
2. [The Prime Glossary: sexy primes, PrimePages](https://t5k.org/glossary/page.php?sort=SexyPrimes)
3. [セクシー素数, ニッセイ基礎研究所 (NLI Research Institute), 2017](https://www.nli-research.co.jp/report/detail/id%3D56316?site=nli)
4. [On a Dynamical Approach to Some Prime Number Sequences, Entropy 20(2), 131](https://www.mdpi.com/1099-4300/20/2/131)
5. [Twin Primes Segmented Sieve of Zakiya (SSoZ) Explained, J Curr Trends Comp Sci Res (2023)](https://www.opastpublishers.com/open-access-articles/twin-primes-segmented-sieve-of-zakiya-ssoz-explained.pdf)
6. [Ford, Kevin. Sieve Methods Lecture Notes, Spring 2023, University of Illinois](https://ford126.web.illinois.edu/sieve2023.pdf)
7. [Sexy Prime Triples & Sexy Prime Quadruples, pzktupel.de prime k-tuplets records](https://www.pzktupel.de/CPAP/sexyP.php)
8. [D. H. J. Polymath. The "bounded gaps between primes" Polymath project, a retrospective. arXiv:1409.8361](https://arxiv.org/abs/1409.8361)
9. [Prime numbers with gap 6 (Sexy Primes) in 1–1000, gaps-in-prime-no-s (2013)](https://pkalika.in/wp-content/uploads/2015/09/gaps-in-prime-no-s-2013.pdf)
10. [Peaks and gaps: Spectral analysis of the intervals between prime numbers, Physica A](https://www.sciencedirect.com/science/article/pii/S0378437107005389)
11. [Correlations of almost primes, Math. Proc. Camb. Phil. Soc. 174 (2023)](https://www.cambridge.org/core/journals/mathematical-proceedings-of-the-cambridge-philosophical-society/article/correlations-of-almost-primes/08F8E4E4C36F68ED6DDA373CCAF7A221)
12. [Kowitz, Krzysztof. Twin, cousin, and sexy prime counting function. Explicit formulas. Ukrains'kyi Matematychnyi Zhurnal 76(8) (2024)](https://umj.imath.kiev.ua/index.php/umj/article/view/7567)
13. [Morpurgo, Giulio. On a Stricter Twin Primes Conjecture, and on the Polignac's Conjecture in general. arXiv:2210.15487](https://arxiv.org/abs/2210.15487)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: Physical world and mathematics › Mathematics and statistics › Numbers and algebra › Number theory › Analytic number theory › Primes and factorization

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/sexy-prime
