1
the sunday tImes of malta maRCh 11, 2018 | 51 LIFE& WELLBEING SCIENCE ALEXANDER FARRUGIA You are given a number n, and you are asked to find the two whole numbers a and b, both greater than 1, such that a times b is equal to n. If I give you the number 21, say, then you would tell me “that is 7 times 3”. Or, if I give you 55, you would say “that is 11 times 5”. Now suppose I ask you for the two whole numbers, both greater than 1, whose product (multipli- cation) equals the number 6,436,609. This is a much harder problem, right? I invite you to try to work it out, before you read on. A prime number is a number that is only divisible by 1 and by itself. The number 21 is not prime, because it is divisible by 3 and by 7. However, the num- bers 3 and 7 themselves are both prime. On the other hand, the numbers 21, 55 and 6,436,609 have this thing in common: each of them is equal to the product of two prime numbers. The problem of splitting up a number into its constituent primes is called the prime factor- ization problem. It is known that if these prime numbers are large enough, then there is no efficient way of finding them in a feasible amount of time. This fact is the basis of internet security schemes such as the RSA algorithm used to encrypt online bank transactions and social network websites such as Twitter. Even though the prime fac- torisation problem for the num- ber 6,436,609 looks difficult, it is a relatively straightforward problem for a computer. Indeed, in 2009, a 512-bit number was factored into its two primes by Benjamin Moody – that is a number having 155 digits! (By comparison, the number 6,436,609 has only seven digits.) It took his desktop computer 73 days to achieve this feat. Later, during the same year, a 768-bit number, having 232 digits, was factored into its constituent primes by a team of 13 academ- ics – it took them two years to do so! This is the largest number that has been factored to date. Nowadays, most websites employing the RSA algorithm use at least a 2,048-bit (617- digit) number to encrypt data. Some websites such as Facebook and GMail use a different encryption algorithm called ECC (elliptic curve cryptography), which is not based on the prime factorisation problem. By the way, what are the prime factors of 6,436,609? I will not spoil you with the answer, but I will give you a hint: one of its prime factors has three digits. Alexander Farrugia is a lecturer at the University of Malta Junior Col- lege with a PhD in mathematics and a top writer on the website www.quora.com, where he writes primarily about various aspects of mathematics. DID YOU KNOW? G. H. Hardy, in his 1940 book A Mathe- matician’s Apology, wrote: “No one has yet discovered any purpose to be served by the theory of numbers and it seems unlikely that anyone will do so for many years.” Sixty years later, the theory of numbers is at the heart of internet security! Read the main arti- cle for more details. The sieve of Eratosthenes is an old method used to generate all the prime numbers up to some number N. Essen- tially, a list of all the numbers from 2 to N is produced, then the first number in this list is placed among the prime numbers and all the multiples of this number are crossed out from the list. This process is repeated until the list is exhausted. The number 11 is the smallest so-called repunit prime, whose decimal repre- sentation 11 is a string of ones. The next decimal repunit prime is 1,111,111,111,111,111,111, the number rep- resented by a string of 19 ones. This means, for example, that the number 11,111 is not prime. What are the two factors of 11,111? For more trivia, see: www.um.edu.mt/think. MYTH DEBUNKED Is 1 a prime number? If this question was asked before the start of the 20th century, one would have invariably received a ‘yes’. Most mathematicians before the 20th century listed 1 as one of the prime numbers. However, at the start of the 20th century, 1 was debarred from being a prime number. Instead, it was placed in its own category, that of a unit. Why did this change occur? To answer this, we need to first understand what a unit is. A unit is a whole number that has a ‘partner’, also a whole number, such that when we multiply the unit by its partner, the answer is 1. From this, we can confirm that 1 is a unit, having the part- ner 1; indeed, 1x1=1. Moreover, no other positive whole num- ber is a unit, because we can- not multiply any whole num- ber greater than one by any whole number ‘partner’ and get 1. The whole numbers satisfy a very important property called the Fundamental Theorem of Arithmetic. This property states that any posi- tive whole number that is not a unit is either a prime num- ber or made up of the multi- plication of some unique list of prime numbers. For exam- ple, the number 59 is a prime number, but the number 60 is made up of the primes 2, 2, 3 and 5 such that 2x2x3x5=60. In fact, not only is 60 equal to 2x2x3x5, but no other list of prime numbers, when multi- plied by each other, can result in 60. Why do mathematicians exclude 1 from being a prime number? If 1 were prime, then the number 60 would also be equal to the multipli- cation 1x2x2x3x5 of the primes 1, 2, 2, 3 and 5. This means that our list of prime numbers whose multiplica- tion is equal to 60 would not be unique, and this would contradict the Fundamental Theorem of Arithmetic. PHOTO OF THE WEEK Prime numbers and cryptography The 2,160-bit public key, in hexadecimal, of a local website that employs the RSA algorithm to encrypt its data. As its name suggests, this number is public information and is downloaded by your web browser and stored on your device as soon as you visit the website. SOUND BITES The day after Christmas of 2017, a 51-year old electrical engineer from Germantown, Tennessee discovered what, up to this day, is the largest known prime number. Jonathan Pace has been a volunteer of the GIMPS project (Great Internet Mersenne Prime Search) for 14 years, using free soft- ware available by GIMPS to search for so- called Mersenne primes. A Mersenne prime is a prime number that is equal to one less than a power of two. For example, 3 and 7 are Mersenne primes, because they are equal to 2x2-1 and 2x2x2-1, respec- tively. Mr Pace’s Mersenne prime is found by multiplying 77,232,917 twos, and then subtracting 1! This number, if written down, would have a whopping 23,249,425 digits! That is almost a million digits more than the next largest discovered prime, which was discovered in January 2016, also by GIMPS. A prime gap is the difference between two successive prime numbers. For example, the numbers 317 and 331 are both prime, but no number in between is prime, so we have a prime gap of 14. By the Prime Num- ber Theorem, the average prime gap between any two consecutive prime num- bers among the first n whole numbers is the natural logarithm of n. The merit of a prime gap is thus defined as the prime gap divided by this average prime gap. For example, the merit of the prime gap between 317 and 331 is 2.43, which means that this prime gap is more than twice the average prime gap among those between 1 and 317. In December 2017, the GapCoin network discovered a prime gap of length 8350 following an 87-digit prime. This prime gap has merit 41.94, which means that it is almost 42 times as large as the average prime gap. This is the largest prime gap merit discovered to date. For more science news, listen to Radio Mocha on Radju Malta 2 every Saturday at 11.05am. The first 50 prime numbers. The front page of the very first printed version of the mathematical treatise Elements. The Elements is a 13-volume book entirely written by Euclid of Alexandria (circa 300BC). This treatise is considered to contain the very first study of prime numbers, which Euclid defines in Book 7, Definition 11 as ‘those which are measured by a unit alone’. He also proves important results on prime numbers, such as his famous theorem in Book 9, Proposition 20, asserting that ‘prime numbers are more than any assigned multitude of prime numbers’ – in other words, there are infinitely many prime numbers. The version of the Elements in the photo is in both Greek and Latin and was published in 1573 in Paris. It is currently preserved in the Archives and Special Collections of Dickinson College, Carlisle, Pennsylvania. An online version of an English translation of the entire Elements is available for free at https://mathcs.clarku.edu/~djoyce/java/ elements/elements.html and is maintained by Prof. David Joyce of Clark University, Worcester. PHOTO: https://www.maa.org/sites/default/files/i mages/upload_library/46/Swetz_2012_Ma th_Treasures/Dickinson/EuclidisElementor um_title.png

LIFE WELLBEING SCIENCE Prime numbers and cryptography

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: LIFE WELLBEING SCIENCE Prime numbers and cryptography

the sunday tImes of malta maRCh 11, 2018 | 51

LIFE&WELLBEING SCIENCE

ALEXANDER FARRUGIA

You are given a number n, and youare asked to find the two wholenumbers a and b, both greaterthan 1, such that a times b is equalto n. If I give you the number 21,say, then you would tell me “thatis 7 times 3”. Or, if I give you 55,you would say “that is 11 times 5”.

Now suppose I ask you for thetwo whole numbers, both greaterthan 1, whose product (multipli-cation) equals the number6,436,609. This is a much harderproblem, right? I invite you to tryto work it out, before you read on.

A prime number is a numberthat is only divisible by 1 and byitself. The number 21 is notprime, because it is divisible by3 and by 7. However, the num-bers 3 and 7 themselves are bothprime. On the other hand, thenumbers 21, 55 and 6,436,609have this thing in common: eachof them is equal to the product oftwo prime numbers.

The problem of splitting up anumber into its constituentprimes is called the prime factor-ization problem. It is known thatif these prime numbers are largeenough, then there is no efficientway of finding them in a feasible

amount of time. This fact is thebasis of internet security schemessuch as the RSA algorithm used toencrypt online bank transactionsand social network websites suchas Twitter.

Even though the prime fac-torisation problem for the num-ber 6,436,609 looks difficult, itis a relatively straightforwardproblem for a computer. Indeed,in 2009, a 512-bit number was

factored into its two primes byBenjamin Moody – that is anumber having 155 digits! (Bycomparison, the number6,436,609 has only seven digits.)It took his desktop computer 73days to achieve this feat. Later,during the same year, a 768-bitnumber, having 232 digits, wasfactored into its constituentprimes by a team of 13 academ-ics – it took them two years to doso! This is the largest numberthat has been factored to date.

Nowadays, most websitesemploying the RSA algorithmuse at least a 2,048-bit (617-digit) number to encrypt data. Some websites such as Facebook and GMail use a differentencryption algorithm called ECC(elliptic curve cryptography),which is not based on the primefactorisation problem.

By the way, what are the primefactors of 6,436,609? I will notspoil you with the answer, but Iwill give you a hint: one of itsprime factors has three digits.

Alexander Farrugia is a lecturer atthe University of Malta Junior Col-lege with a PhD in mathematics anda top writer on the websitewww.quora.com, where he writesprimarily about various aspects ofmathematics.

DID YOU KNOW?

• G. H. Hardy, in his 1940 book A Mathe-matician’s Apology, wrote: “No one hasyet discovered any purpose to beserved by the theory of numbers andit seems unlikely that anyone will do sofor many years.” Sixty years later, thetheory of numbers is at the heart ofinternet security! Read the main arti-cle for more details.

• The sieve of Eratosthenes is an oldmethod used to generate all the primenumbers up to some number N. Essen-tially, a list of all the numbers from 2to N is produced, then the first numberin this list is placed among the primenumbers and all the multiples of thisnumber are crossed out from the list.This process is repeated until the listis exhausted.

• The number 11 is the smallest so-calledrepunit prime, whose decimal repre-sentation 11 is a string of ones. Thenext decimal repunit prime is1,111,111,111,111,111,111, the number rep-resented by a string of 19 ones. Thismeans, for example, that the number11,111 is not prime. What are the twofactors of 11,111?

For more trivia, see: www.um.edu.mt/think.

MYTHDEBUNKED

Is 1 a primenumber?If this question was askedbefore the start of the 20thcentury, one would haveinvariably received a ‘yes’.Most mathematicians beforethe 20th century listed 1 asone of the prime numbers.However, at the start of the20th century, 1 was debarredfrom being a prime number.Instead, it was placed in itsown category, that of a unit.Why did this change occur?

To answer this, we need tofirst understand what a unitis. A unit is a whole numberthat has a ‘partner’, also awhole number, such thatwhen we multiply the unit byits partner, the answer is 1.From this, we can confirmthat 1 is a unit, having the part-ner 1; indeed, 1x1=1. Moreover,no other positive whole num-ber is a unit, because we can-not multiply any whole num-ber greater than one by anywhole number ‘partner’ andget 1.

The whole numbers satisfya very important propertycalled the Fundamental Theorem of Arithmetic. Thisproperty states that any posi-tive whole number that is nota unit is either a prime num-ber or made up of the multi-plication of some unique listof prime numbers. For exam-ple, the number 59 is a primenumber, but the number 60 ismade up of the primes 2, 2, 3and 5 such that 2x2x3x5=60.In fact, not only is 60 equal to2x2x3x5, but no other list ofprime numbers, when multi-plied by each other, can resultin 60.

Why do mathematiciansexclude 1 from being a primenumber? If 1 were prime,then the number 60 wouldalso be equal to the multipli-cation 1x2x2x3x5 of theprimes 1, 2, 2, 3 and 5. Thismeans that our list of primenumbers whose multiplica-tion is equal to 60 would notbe unique, and this wouldcontradict the Fundamental Theorem of Arithmetic.

PHOTO OF THE WEEK

Prime numbers and cryptography

The 2,160-bit public key, in hexadecimal, of a local website that employsthe RSA algorithm to encrypt its data. As its name suggests, this numberis public information and is downloaded by your web browser and storedon your device as soon as you visit the website.

SOUND BITES

• The day after Christmas of 2017, a 51-yearold electrical engineer from Germantown,Tennessee discovered what, up to this day,is the largest known prime number.Jonathan Pace has been a volunteer of theGIMPS project (Great Internet MersennePrime Search) for 14 years, using free soft-ware available by GIMPS to search for so-called Mersenne primes. A Mersenneprime is a prime number that is equal toone less than a power of two. For example,3 and 7 are Mersenne primes, because theyare equal to 2x2-1 and 2x2x2-1, respec-

tively. Mr Pace’s Mersenne prime is foundby multiplying 77,232,917 twos, and thensubtracting 1! This number, if writtendown, would have a whopping 23,249,425digits! That is almost a million digits morethan the next largest discovered prime,which was discovered in January 2016,also by GIMPS.

• A prime gap is the difference between twosuccessive prime numbers. For example,the numbers 317 and 331 are both prime,but no number in between is prime, so wehave a prime gap of 14. By the Prime Num-ber Theorem, the average prime gapbetween any two consecutive prime num-bers among the first n whole numbers is

the natural logarithm of n. The merit of aprime gap is thus defined as the prime gapdivided by this average prime gap. Forexample, the merit of the prime gapbetween 317 and 331 is 2.43, which meansthat this prime gap is more than twice theaverage prime gap among those between1 and 317. In December 2017, the GapCoinnetwork discovered a prime gap of length8350 following an 87-digit prime. Thisprime gap has merit 41.94, which meansthat it is almost 42 times as large as theaverage prime gap. This is the largestprime gap merit discovered to date.

For more science news, listen to Radio Mochaon Radju Malta 2 every Saturday at 11.05am.

The first 50 prime numbers.

The front page of the very first printedversion of the mathematical treatiseElements. The Elements is a 13-volumebook entirely written by Euclid ofAlexandria (circa 300BC). This treatise isconsidered to contain the very first studyof prime numbers, which Euclid defines inBook 7, Definition 11 as ‘those which aremeasured by a unit alone’. He also provesimportant results on prime numbers, suchas his famous theorem in Book 9,Proposition 20, asserting that ‘primenumbers are more than any assignedmultitude of prime numbers’ – in otherwords, there are infinitely many primenumbers. The version of the Elements inthe photo is in both Greek and Latin andwas published in 1573 in Paris. It iscurrently preserved in the Archives andSpecial Collections of Dickinson College,Carlisle, Pennsylvania. An online versionof an English translation of the entireElements is available for free athttps://mathcs.clarku.edu/~djoyce/java/elements/elements.html and ismaintained by Prof. David Joyce of ClarkUniversity, Worcester. PHOTO:https://www.maa.org/sites/default/files/images/upload_library/46/Swetz_2012_Math_Treasures/Dickinson/EuclidisElementorum_title.png