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#
- Prime Quadruplets
- Prime Quintuplets 1
- Prime Quintuplets 2
- Prime Sextuplets
- Prime Triplets
- Sexy prime quadruplets
- Sexy prime triplets
- Sexy primes
- Twin primes
- Chen Primes
- Safe Primes
- Sophie Germain Primes
- Additive and Multiplicative Primes
- Additive 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
- Euclid Primes
- Factorial 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
- Mills Primes
- Multiplicative Primes
- Palindromic Primes
- Pierpont Primes Of the 2nd kind
- Pierpont Primes
- Prime numbers
- Proth Primes
- Pythagorean Primes
- Quartan Primes
- Restricted Left-truncatable primes
- Restricted Right-truncatable primes
- Right-truncatable 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
- Woodall Primes