Saturday 6 August 2022

Blog #137: Twin Primes and Paired programming!


Thanks to my cousin Rajaram V for triggering a conversation around Prime number distribution this week which resulted in this short blog of mine. 

As per the standard mathematical definition, Twin primes are those two numbers which are prime in nature and the difference between them is 2

For e.g (3, 5), (5,7), (41, 43), (101, 103) are all examples of twin primes.

Taking this one step further let's look at the following twin primes

(11, 13) - Multiply 11 and 13 and we get 143. Add the digits of 143 till we get a single digit number. The resultant is 8

(17, 19) - Multipl1 17 and 19 and we get 323. Add the digits and the resultant is 8

(41, 43) - Repeat the above process. 1763 is the product and adding the digits will result in 8 again (17 followed by 8)

(137, 139) – The product is 19043 and adding the digits will result in 8 again!

Now for my favourite prime number – 333031, which is the Zip code of my Alma mater BITS, Pilani. Coincidentally it has a twin prime which is 333029! Multiple 333029 and 333031 and the resultant product is 110,908,980,899. Add the digits and we get 8 yet again!!!

Strangely if you apply this for the first twin prime (3,5) it results in 6 and not 8 and that seems to be the outlier

A simple analogy with the corporate world

Benefits of Paired Programming - Two individuals having overlapping as well as unique skillsets (odd numbers but with different properties of their own), pair up with each other towards a common cause or goal (Resultant 8 above) irrespective of the changing environment or dynamics around (whether it is a 2 digit or 6 digit prime number)

Does the sequence break somewhere or is there anything else unique about Twin primes? Would explore further in my next blog