What Are Twin Primes, Cousin Primes And Sexy Primes?

Table of Contents (click to expand)

Twin primes are a pair of primes that differ by 2, such as (11, 13). Cousin primes differ by 4, such as (7, 11). Sexy primes differ by 6, such as (5, 11), with "sexy" coming from sex, the Latin word for six. Whether infinitely many twin primes exist remains an unproven conjecture.

Numbers hold a certain sense of intrinsic beauty that most of us cannot deny. Even if you do fit in the cadre of people who feel an aversion towards numbers, there are still patterns that almost anyone can see. Today, we will be looking at a few such patterns that arise in the series of numbers known as primes. Now, before we step into investigating these patterns, let’s first take a brief overview of what prime numbers actually are.

Prime Numbers

A prime number is a number that can be defined as a natural number. Without straying away too much from the topic at hand, a natural number can simply be defined as those numbers that are used for counting and ordering. To further elaborate, prime numbers are whole numbers greater than 1 that cannot be obtained as the product of any other whole number. It can only be obtained as the product of one and the number itself. Let’s take the example of two numbers, 5 and 6. Now, 5 is a prime number because we cannot obtain it from the multiplication of any other whole number preceding it, such as 2 and 3. It can only be obtained by taking the product of 1 and 5 (the number itself). Now, the number 6 does not follow the definition of a prime. It can be obtained as the product of 2 and 3. It can also be obtained as the product of 1 and 6. A number like 6, which has divisors other than 1 and itself, is known as a composite number.

prime no, composite number
Prime vs composite numbers

Twin Primes

A twin prime can be defined as a prime number that is either two less or two more than another prime number. Putting this in more simple terms, they are two primes that have a gap of two between them. What makes them highly unique is the fact that they become exceedingly rare as one examines larger ranges. It is still unknown whether there are infinitely many twin primes. This question, known as the twin prime conjecture, has resisted proof for over 150 years, although substantial and pioneering work has been done by eminent mathematicians. In 2013, Yitang Zhang made the first major breakthrough, proving that there are infinitely many pairs of primes that differ by less than 70 million. A wave of follow-up work, including the collaborative Polymath8 project led by Terence Tao and fresh ideas from James Maynard, has since shrunk that gap down to just 246. Closing it the rest of the way to 2 (the twin prime conjecture itself) remains an open problem.

Eminent mathematician Yitang Zhang
Eminent mathematician Yitang Zhang (Photo Credit : public domain/Wikimedia Commons)

Now, let’s take a look at the first set of twin primes:

(3, 5), (5, 7), (11, 13), (17, 19), (29, 31), (41, 43), (59, 61), (71, 73), (101, 103), (107, 109), (137, 139), …

The unique property in the above pairs is that 5 is the only number to appear in two distinct twin prime numbers. We can only give a generalized form into which all twin primes fall, and that is (6n-1,6n+1) where n must be a natural number. The sum of all the twin pair numbers are divisible by 12. This applies to all twin pairs except the pair (3,5), as the sum of this pair is not divisible by 12.

How big can twin primes get? The largest pair found so far is 2996863034895 × 21290000 ± 1, in which each prime runs to a whopping 388,342 digits. It was discovered in 2016 by the volunteer computing project PrimeGrid, and it still holds the record today.

Cousin Primes

prime no, composite number
Cousin prime numbers

Cousin primes are those prime numbers that differ from another by a gap of 4. The only prime belonging to two pairs of cousin primes is 7. One of the numbers in n, n+4, and n+8 will always be divisible by 3, which makes it in such a way where n=3 is the only way all three numbers can be prime. Some of the cousin primes below 1000 are:

(3, 7), (7, 11), (13, 17), (19, 23), (37, 41), (43, 47), (67, 71), (79, 83), (97, 101), (103, 107), (109, 113), (127, 131), (163, 167), (193, 197), (223, 227), (229, 233), (277, 281), (307, 311), (313, 317), (349, 353), (379, 383), (397, 401), (439, 443), (457, 461), (463,467), (487, 491), (499, 503), (613, 617), (643, 647), (673, 677), (739, 743), (757, 761), (769, 773), (823, 827), (853, 857), (859, 863), (877, 881), (883, 887), (907, 911), (937, 941), (967, 971)

As of December 2024, the largest known pair of cousin primes was found by Serge Batalov, and each of its two primes has 86,138 digits. Records like these are often written using a primorial, denoted n#. The term n# stands for the product 2 × 3 × 5 × 7 × … of all primes less than or equal to n. In mathematics, and more particularly in number theory, a primorial is a function from natural numbers to natural numbers similar to the factorial function, but rather than successively multiplying positive integers, only prime numbers are multiplied.

Sexy Primes

In mathematics, sexy primes can be defined as those primes that differ from another by a gap of 6. An example of this is 5 and 11. Twin primes differ by 2, cousin primes by 4, and sexy primes by 6. See clear definitions, examples, the twin prime conjecture, and the largest known pairs. There are three types of groupings for sexy primes.

The first kind of grouping is known as Sexy prime pairs. As the name suggests, these are primes that come in pairs. The sexy prime pairs under 500 are:

(5,11), (7,13), (11,17), (13,19), (17,23), (23,29), (31,37), (37,43), (41,47), (47,53), (53,59), (61,67), (67,73), (73,79), (83,89), (97,103), (101,107), (103,109), (107,113), (131,137), (151,157), (157,163), (167,173), (173,179), (191,197), (193,199), (223,229), (227,233), (233,239), (251,257), (257,263), (263,269), (271,277), (277,283), (307,313), (311,317), (331,337), (347,353), (353,359), (367,373), (373,379), (383,389), (433,439), (443,449), (457,463), (461,467).

As of May 2009, the largest known sexy prime was found by Ken Davis and has 11,593 digits. The primes are (p, p+6) for

p = (117924851 × 587502 × 9001# × (587502 × 9001# + 1) + 210) × (587502 × 9001# − 1)/35 + 5.

9001# = 2×3×5×…×9001 is a primorial, i.e., the product of primes ≤ 9001.

Sexy primes can be extended to larger constellations. Triplets of primes (p, p + 6, p + 12) such that p + 18 is composite are called sexy prime triplets. Those below 1000 are:

(7,13,19), (17,23,29), (31,37,43), (47,53,59), (67,73,79), (97,103,109), (101,107,113), (151,157,163), (167,173,179), (227,233,239), (257,263,269), (271,277,283), (347,353,359), (367,373,379), (557,563,569), (587,593,599), (607,613,619), (647,653,659), (727,733,739), (941,947,953), (971,977,983).

As of 2013, the largest known sexy prime triplet, found by Ken Davis had 5,132 digits:

p = (84055657369 · 205881 · 4001# · (205881 · 4001# + 1) + 210) · (205881 · 4001# – 1) / 35 + 1.

Sexy prime quadruplets (p, p + 6, p + 12, p + 18) can only begin with primes ending in a 1 in their decimal representation (except for the quadruplet with p = 5). The sexy prime quadruplets below 1000 are:

(5,11,17,23), (11,17,23,29), (41,47,53,59), (61,67,73,79), (251,257,263,269), (601,607,613,619), (641,647,653,659).

In November 2005, the largest known sexy prime quadruplet, found by Jens Kruse Andersen, had 1,002 digits:

p = 411784973 · 2347# + 3301.

In September 2010, Ken Davis announced a 1,004-digit quadruplet with p = 23333 + 1582534968299.

There are also sexy prime quintuplets but for all practical purposes, our knowledge and inquiry up to sexy prime quadruplets would prove more than sufficient to tackle most math lectures you might be facing in number theory or prime numbers in general!

References (click to expand)
  1. Twin Prime – The Prime Pages (PrimePages).
  2. Zhang, Y. (2014). Bounded gaps between primes. Annals of Mathematics.
  3. Bounded Gaps Between Primes – Clay Mathematics Institute.
  4. Sexy Primes – The Prime Pages (PrimePages).
  5. Cousin Primes – Wolfram MathWorld.
  6. Twin prime – Wikipedia.