Today is my twin brother’s birthday, so I decided that’s a good enough excuse to talk a bit about twins. Whilst “twin brothers” are my favourite variety of twin, I’m actually going to be writing about my second favourite twins: Twin Primes.

Twin Primes refer to any pairs where both and are prime. For example , and , and . There are bigger twin primes too, like , and , and .

As of September , the largest known pair of twin primes was . But what about twin primes bigger than that? How many are there? What are they? Well the truth is, we don’t know.It is conjectured there there are infinitely many twin primes, but this remains unproven.

So what do we know about twin primes? Well, aside from , every prime number has at most one twin. This is because every third odd number is a multiple of , and the only prime multiple of is itself. Using modular arithmetic, we can extend this idea further to say that, aside from , if are twin primes, we must have (mod ). The only way this is possible is if (mod ). Further, is the only even prime number, so and must both be odd. Combining this with the previous relation, we get that (mod ).

There is a cool theorem in number theory called Wilson’s Theorem. This states that for odd , is prime if and only if (mod ). This is the same as saying (mod ). As is odd, , so (mod ). Finally, (mod ) so we can say (mod ).

Now consider twin primes . We established earlier that they must both be odd so the above relation must hold, i.e. (mod ), and therefore (mod ). Using Wilson’s Theorem on yields (mod ). Note that . Hence we can write (mod ), i.e. (mod ). This therefore means that (mod ). We then do the following algebraic manipulation:

(mod ) (mod ) (mod ) (mod ) (mod )

So now we have that (mod ) and (mod ). Because and are coprime, we can combine these two equations and get (mod ) for all twin primes

If this has got you intrigued, see what you can work out (or find out) about cousin primes (where both and are prime) and sexy primes (where both and are prime)!

One final type of number I’ll mention is “Isolated Primes”. This refers to any number that isn’t a twin prime. It’s quite a fitting name really, as I know I’m a lot happier because of my twin.