Cousin primes
In mathematics, a cousin primes is a set of two prime numbers of the form {p, p + 4}. Compare this with twin primes, pairs of prime numbers that differ by two, and sexy primes, pairs of prime numbers that differ by six.
The only prime belonging to two pairs of cousin primes is 7. One of the numbers n, n+4, n+8 will always be divisible by 3, so n = 3 is the only case where all three are primes.
First 20: {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}
Checkout list of first: 10, 50, 100, 500, 1000 cousin primes. You can also check all cousin primes.
Visualization#
Every frame counter is increased by one. If it is cousin prime then dot appears. Color has no meaning. Video has 25fps.
You can also compare it with other types.
External#
- OEIS: A023200, A046132
- Wikipedia: Cousin primes
- Youtube: Visualization up to 1 million
Tags#
Related Articles#
- Sexy prime triplets
- Prime Sextuplets
- Sexy prime quadruplets
- Sexy primes
- Prime Triplets
- Twin primes
- Prime Quintuplets 2
- Prime Quintuplets 1
- Prime Quadruplets
- Chen Primes
- Sophie Germain Primes
- Safe Primes
- Restricted Right-truncatable primes
- Proth Primes
- Pythagorean Primes
- Quartan Primes
- Prime numbers
- Restricted Left-truncatable primes
- Pierpont Primes
- Additive and Multiplicative Primes
- Right-truncatable primes
- Palindromic Primes
- Solinas Primes
- Super Primes
- Thabit primes of the 2nd kind
- Thabit Primes
- Two sided primes
- Ulam Primes
- Wagstaff Primes
- Weakly Primes
- Wedderburn-Etherington Primes
- Wilson Primes
- Pierpont Primes Of the 2nd kind
- Multiplicative Primes
- Additive Primes
- Euclid Primes
- Bell Primes
- Carol Primes
- Centered Decagonal Primes
- Centered Heptagonal Primes
- Centered Square Primes
- Centered Triangular Primes
- Class 1+ Primes
- Cuban Primes 1
- Cuban Primes 2
- Cullen Primes
- Dihedral Primes
- Double Mersenne Primes
- Emirps
- Factorial Primes
- Mills Primes
- Fermat Primes
- Fibonacci Primes
- Genocchi Primes
- Good Primes
- Happy Primes
- Harmonic Primes
- Isolated Primes
- Kynea Primes
- Left-truncatable primes
- Leyland Primes
- Long Primes
- Lucas Primes
- Lucky Primes
- Mersenne Primes
- Woodall Primes