{"id":7060,"date":"2025-12-12T15:27:30","date_gmt":"2025-12-12T20:27:30","guid":{"rendered":"https:\/\/creatureandcreator.ca\/?p=7060"},"modified":"2025-12-12T15:27:30","modified_gmt":"2025-12-12T20:27:30","slug":"prime-numbers-mysterious-building-blocks","status":"publish","type":"post","link":"https:\/\/creatureandcreator.ca\/?p=7060","title":{"rendered":"Prime Numbers: Mysterious Building Blocks"},"content":{"rendered":"<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-top-right\"><a href=\"https:\/\/creatureandcreator.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fposts%2F7060&print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\" ><img decoding=\"async\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/plugins\/pdf-print\/images\/pdf.png\" alt=\"image_pdf\" title=\"View PDF\" \/><\/a><a href=\"https:\/\/creatureandcreator.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fposts%2F7060&print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\" ><img decoding=\"async\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>\n<p>\u00a0<\/p>\n<p>A prime number is one that can only be divided by 1 and itself. Prime numbers are the building blocks for all the natural numbers, each of which can be expressed as a unique product of primes. Although their primacy can be proven by demonstrating that they are not divisible by any other number, where the prime numbers occur among the natural numbers cannot be predicted. Prime numbers are as mysterious as they are essential. The illustration shows the 25 primes (yellow) that occur in the first 100 numbers.\u00a0<\/p>\n<p><!--more--><\/p>\n<p><strong>Some Fundamentals<\/strong><\/p>\n<p>A \u201cprime number\u201d <em>p<\/em> is a natural number (a positive integer) greater than 1 that is divisible only by 1 and itself. A \u201ccomposite number\u201d is any natural number greater than 1 that is not a prime. In positive terms, a composite number <em>n<\/em> is divisible without remainder by two numbers between 1 and <em>n<\/em>: <em>n=ab. <\/em>\u00a0The two kinds of numbers can be illustrated graphically. Composite numbers of objects (blue) can be organized into repeating groups (factors), whereas prime numbers of objects (red) cannot:<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-and-composites-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7054\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-and-composites-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1932\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-and-composites-scaled.jpg 2560w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-and-composites-300x226.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-and-composites-1024x773.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-and-composites-768x579.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-and-composites-1536x1159.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-and-composites-2048x1545.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/p>\n<p>This idea is also illustrated in a delightful <a href=\"https:\/\/www.datapointed.net\/visualizations\/math\/factorization\/animated-diagrams\/\">animation<\/a> of the \u201cFactor Conga\u201d by <a href=\"https:\/\/www.datapointed.net\/2012\/10\/animated-factorization-diagrams\/\">Stephen Von Worley<\/a>.<\/p>\n<p>The number 1 was sometimes considered prime, but nowadays 1 is viewed as a special number \u2013 \u201cunit\u201d or \u201cunity\u201d \u2013 because of two properties (Lamb, 2019). First is the \u201cmultiplicative identity\u201d characteristic: any number multiplied by 1 remains the same number. Second is the \u201cmultiplicative inverse\u201d characteristic. The multiplicative inverse of a number multiplied by the original number gives 1. The multiplicative inverse of any number greater than 1 is a fraction, e.g., the multiplicative inverse of 2 is 1\/2. The multiplicative inverse of 1 is the integer 1.\u00a0<\/p>\n<p>\u00a0<\/p>\n<p><strong>Factorization<\/strong><\/p>\n<p>The determination of the numbers that when multiplied together give a composite number is called \u201cfactorization.\u201d The simplest algorithm involves \u201ctrial division:\u201d one divides each of the primes into the number to see which leaves no remainder, and repeats this with the quotient: The prime factors of 1540 are 2, 5, 7 and 11:\u00a0<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/trial-division-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7059\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/trial-division-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1504\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/trial-division-scaled.jpg 2560w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/trial-division-300x176.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/trial-division-1024x602.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/trial-division-768x451.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/trial-division-1536x902.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/trial-division-2048x1203.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/p>\n<p>Pierre de Fermat (1601-1665) was a French mathematician and magistrate. He is probably most famous for his \u201clast theorem\u201d \u2013 that no three positive integers <em>a<\/em>, <em>b<\/em>, and <em>c<\/em> satisfy the equation <em>a<sup>n<\/sup><\/em>+<em>b<sup>n<\/sup><\/em>=<em>c<sup>n<\/sup><\/em> for any integer value of <em>n<\/em> greater than 2 \u2013 for which he claimed to have a \u201cmarvelous proof.\u201d A proof of the theorem was finally published by Andrew Wiles in 1994.<\/p>\n<p>However, Fermat also proposed a method for factorization based on the equation<\/p>\n<p style=\"padding-left:60pt;\"><em>a<sup>2 <\/sup>\u2013 b<sup>2<\/sup> = (a + b)(a &#8211; b)<\/em><\/p>\n<p>This method works best if the number <em>n<\/em> is the product of two nearby integers.<\/p>\n<p style=\"padding-left:60pt;\">Select <em>a <\/em>as the next integer greater than sqrt(n).<br \/>Calculate <em>b2<\/em> = <em>a<sup>2<\/sup> -n. \u00a0<\/em>Increment <em>a<\/em> until sqrt(<em>b<sup>2<\/sup><\/em>) is an integer.<br \/>Return values <em>a<\/em> +sqrt (<em>b<sup>2<\/sup><\/em>) and a \u2013 sqrt (<em>b<sup>2<\/sup><\/em>)<\/p>\n<p>For the number 5959, the following are <a href=\"https:\/\/en.wikipedia.org\/wiki\/Fermat%27s_factorization_method\">the steps<\/a><\/p>\n<p style=\"padding-left:60pt;\"><em>a\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/em>78\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 79\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 80<br \/><em>b<sup>2<\/sup> = a<sup>2<\/sup> -n<\/em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 125\u00a0\u00a0\u00a0\u00a0\u00a0 282\u00a0\u00a0\u00a0\u00a0\u00a0 441<br \/>sqrt (<em>b<sup>2<\/sup><\/em>)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 11.2\u00a0\u00a0\u00a0\u00a0 16.8\u00a0\u00a0\u00a0\u00a0 21<\/p>\n<p>giving 80+21 (101) and 80-21 (59) as factors of 5959.<\/p>\n<p>Factorization leads to the \u201cFundamental Theorem of Arithmetic\u201d (also called the \u201cPrime Factorization Theorem\u201d) generally attributed to Euclid, a Greek mathematician who worked around 300 BCE in Alexandria:<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-and-fundamental-theorem-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7045\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-and-fundamental-theorem-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1893\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-and-fundamental-theorem-scaled.jpg 2560w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-and-fundamental-theorem-300x222.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-and-fundamental-theorem-1024x757.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-and-fundamental-theorem-768x568.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-and-fundamental-theorem-1536x1136.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-and-fundamental-theorem-2048x1514.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/p>\n<p>The sculpture of Euclid in the Oxford University Museum was made by Joseph Durham around 1860. Euclid was more famous for his geometry than for his contributions to number theory. On the scroll in his left hand is his proof of the \u201cPythagorean Theorem\u201d that the square on the hypotenuse of a right-angled triangle is equal to the sum of the squares on the other two sides. \u00a0<\/p>\n<p>Each number\u2019s set of the exponents for the primes provides a unique signature for each prime and composite number. As examples:<\/p>\n<p style=\"padding-left:60pt;\">11\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0, 0, 0, 0, 1<br \/>1540 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2, 0, 1, 0, 1<br \/>5959\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1<\/p>\n<p>(for the last example, 59 and 101 are the 17<sup>th<\/sup> and 26<sup>th<\/sup> primes).<\/p>\n<p>Euclid also proved that the number of primes is infinite. The proof posits a number <em>p<\/em><sub>n<\/sub> that is the largest of all primes. We can then form a number <em>N<\/em> by multiplying all the primes up to an including <em>p<\/em><sub>n <\/sub>and adding 1.<\/p>\n<p style=\"padding-left:60pt;\">N = p<sub>1<\/sub> p<sub>2<\/sub> p<sub>3<\/sub> \u2026 p<sub>n <\/sub>+ 1<\/p>\n<p>Since every prime less than N divides once into N giving a quotient equal to the product of the other prime numbers and leaving a remainder of 1, N is prime. To postulate a number p<sub>n<\/sub> as the largest of all primes is impossible. Therefore, the number of primes is infinite.<\/p>\n<p>The natural numbers can be viewed as buildings with the primes having only one storey and the composite numbers having multiple storeys:<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/city-of-numbers-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7041\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/city-of-numbers-scaled.jpg\" alt=\"\" width=\"2560\" height=\"634\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/city-of-numbers-scaled.jpg 2560w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/city-of-numbers-300x74.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/city-of-numbers-1024x254.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/city-of-numbers-768x190.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/city-of-numbers-1536x381.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/city-of-numbers-2048x507.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/p>\n<p>As well as the prime factors one can also determine the greatest common divisor (GCD) of two numbers. Instead of calculating all the prime factors one can use Euclid\u2019s algorithm to determine the GCD of two numbers <em>a<\/em>&gt;<em>b<\/em>. One iterates the following commands<\/p>\n<p style=\"padding-left:30pt;\">Divide <em>b<\/em> into <em>a<\/em> to give a quotient and remainder.<br \/>Replace <em>a<\/em> with <em>b<\/em> and <em>b<\/em> with the remainder.<\/p>\n<p>until the remainder equals zero, in which case the current value of b is the GCD. The following illustration (modified from <a href=\"https:\/\/en.wikipedia.org\/wiki\/Euclidean_algorithm#\/media\/File:Euclid's_algorithm_Book_VII_Proposition_2_3.svg\">Wikipedia<\/a>) shows the algorithm graphically for 49 and 21 (GCD of 7) and for 46 and 21 (GCD 1):<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-gcd-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7046\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-gcd-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1191\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-gcd-scaled.jpg 2560w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-gcd-300x140.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-gcd-1024x477.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-gcd-768x357.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-gcd-1536x715.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euclid-gcd-2048x953.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/p>\n<p>Two numbers are considered \u201crelatively prime\u201d or \u201ccoprime\u201d if their GCD is 1, e.g. 46 and 21.<\/p>\n<p>In 1742, the Prussian mathematician Christian Goldbach (1690-1764) conjectured that every even number greater than 2 can be represented as the sum of two prime numbers. This also meant that every odd number is the sum of two primes +1. Goldbach\u2019s conjecture is true for all natural numbers that have been examined, but has not yet been proven.<\/p>\n<p>The prime numbers therefore are the building blocks of arithmetic. Every number can be represented as the product of primes and every even number as the sum of two primes. Du Sautoy (2003, p 5) has called the primes the \u201cvery atoms of arithmetic,\u201d and likened the list of primes to the periodic table of the elements.<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Finding Primes<\/strong><\/p>\n<p>Various techniques have been proposed to identify which numbers are prime in a set of numbers. Erastosthenes, the chief librarian of the Library of Alexandria in the 3<sup>rd<\/sup> Century BCE, became famous for his remarkably accurate estimate of the circumference of the world (Nicastro, 2008). He also proposed an algorithm for identifying primes that is known as the \u201cSieve of Erastosthenes.\u201d The algorithm iteratively rejects as composite those numbers that are multiples of the prime numbers less than the square root of the maximum number to be evaluated. Thus, to examine the numbers between 1 and 100, one marks the multiples of 2, 3, 5, and 7. When the numbers are arrayed 10 by 10, the multiples of 2 and 5 form vertical lines (yellow and blue, with an overlap as green), and the multiples of 3 and 7 form sloping lines (red and dark blue). The unrejected numbers (circled) are primes.\u00a0<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/erastosthenes-sieve-and-portrait.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7044\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/erastosthenes-sieve-and-portrait.jpg\" alt=\"\" width=\"2376\" height=\"1598\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/erastosthenes-sieve-and-portrait.jpg 2376w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/erastosthenes-sieve-and-portrait-300x202.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/erastosthenes-sieve-and-portrait-1024x689.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/erastosthenes-sieve-and-portrait-768x517.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/erastosthenes-sieve-and-portrait-1536x1033.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/erastosthenes-sieve-and-portrait-2048x1377.jpg 2048w\" sizes=\"auto, (max-width: 2376px) 100vw, 2376px\" \/><\/a><\/p>\n<p>As the range of numbers to be examined gets large such approaches to identifying primes become very time-consuming even for very fast computers. It would be wonderful if there were a simple equation to identify all the prime numbers. Unfortunately, there is no such formula (Mackinnon, 1987). Some formulae can identify some prime numbers.<\/p>\n<p>Fermat proposed that numbers of the form<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-numbers.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-7051\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-numbers-300x149.jpg\" alt=\"\" width=\"300\" height=\"149\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-numbers-300x149.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-numbers-768x382.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-numbers.jpg 889w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>are prime. However, the formula only works for <em>n<\/em> between 0 and 4. Leonhard Euler (1707-1783) came up with an intriguing formula<\/p>\n<p style=\"padding-left:60pt;\"><em>n<\/em><sup>2<\/sup> + <em>n<\/em> +41<\/p>\n<p>but this only works for n between -1 and 39.<\/p>\n<p>Marin Mersenne (1588-1648) proposed that numbers of the form<\/p>\n<p style=\"padding-left:60pt;\">2<em><sup>p<\/sup><\/em> \u2013 1<\/p>\n<p>are prime when <em>p <\/em>is prime. However, this only works for some primes: 2, 3, 5, 7, 13, 17, 19, 31, 61, 89 &#8230;. Nevertheless, this formula serves to identify numbers as possible primes. The largest known prime number was found in this way. \u00a0<\/p>\n<p>Recently a formula involving 26 variables has been created that will provide positive and negative numbers when different combinations of integer variables are used for the variables. The positive numbers are primes (Jones et al, 1976). The calculations are laborious and there appears to be no clear logic behind the formula:<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/diophantine-equations.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7043\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/diophantine-equations.jpg\" alt=\"\" width=\"1845\" height=\"673\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/diophantine-equations.jpg 1845w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/diophantine-equations-300x109.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/diophantine-equations-1024x374.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/diophantine-equations-768x280.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/diophantine-equations-1536x560.jpg 1536w\" sizes=\"auto, (max-width: 1845px) 100vw, 1845px\" \/><\/a><\/p>\n<p>Finding our whether a particular number is prime or composite is a time-consuming process. Basically, one need to determine the factors of the number. Various algorithms have been proposed to speed up the process. Some combine various approaches such as the sieve of Erastosthenes and Fermat\u2019s method based on the difference in squares. However, the process remains slow for very large numbers even on the fastest of computers.<\/p>\n<p><strong>Modular Arithmetic<\/strong><\/p>\n<p>Important to any understanding of primes is an assessment of how clock numbers work. If a simple clock displays 1 to 12 hours on its face, amounts of time are considered to work in increments of 12. Therefore 6 hours later than 10 o\u2019clock shows as 4 o\u2019clock rather than 16, and a further 28 hours later shows as 8 o\u2019clock rather than 32 (or 44 if counting from the initial position:<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/clock-arithmetic-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7042\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/clock-arithmetic-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1128\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/clock-arithmetic-scaled.jpg 2560w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/clock-arithmetic-300x132.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/clock-arithmetic-1024x451.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/clock-arithmetic-768x338.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/clock-arithmetic-1536x677.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/clock-arithmetic-2048x902.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/p>\n<p>Carl Friedrich Gauss (1777-1855) first described this type of arithmetic in 1801. The idea is that numbers \u201cwrap around\u201d whenever a value called the \u201cmodulus\u201d is reached. The notation\u00a0<\/p>\n<p style=\"padding-left:60pt;\"><em>a<\/em> \u2261 <em>b<\/em> (mod <em>m<\/em>)<\/p>\n<p>means that <em>a<\/em> and <em>b <\/em>are \u201ccongruent modulo <em>m<\/em>\u201d or<\/p>\n<p style=\"padding-left:60pt;\"><em>a= km + b<\/em><\/p>\n<p>where <em>k<\/em> is a positive integer.<\/p>\n<p>The expression is related to but not the same as the operator \u201cmod\u201d (expressed without brackets) or \u201c%\u201d which gives the remainder when one number is divided by another, e.g. 7 mod 3 = 1. <em>\u00a0<\/em><\/p>\n<p>One intriguing aspect of modular systems is that if a number added to by a number that is multiple of the modulus, the result is the original number. In a clock any number of complete rotations will not change the displayed time.\u00a0<\/p>\n<p>Given these concepts, we can consider Fermat\u2019s \u201cLittle Theorem,\u201d so called to distinguish it from his \u201cLast Theorem.\u201d For any integer <em>a <\/em>where is <em>p<\/em> is a prime and <em>a<\/em> and <em>p<\/em> are relatively prime to each other (have a GCD of 1) then, in modern notation<\/p>\n<p style=\"padding-left:60pt;\"><em>a<sup>p<\/sup><\/em> \u2261 <em>a<\/em> (mod <em>p<\/em>)<\/p>\n<p>This expression means that any number raised to a power of a prime yields itself when considered in a system that is modular at the value of the prime. \u00a0In general, we make <em>p<\/em>&gt;<em>a<\/em>. If <em>p<\/em>&lt;<em>a<\/em>, the procedure yields <em>a<\/em> mod <em>p <\/em>rather than a. We can try this theorem out on small numbers such as <em>a<\/em> = 3 and <em>p<\/em> = 5: <em>a<sup>p<\/sup> = <\/em>243 which divided by 5 leaves a remainder of 3.<\/p>\n<p>Fermat proposed the theorem in 1640 but offered no proof. The theorem was proven by Gottfried Leibniz (1646-1716) in 1683 (see details in Wilson, 2020, pp 97-100).<\/p>\n<p>The theorem can also be expressed<\/p>\n<p style=\"padding-left:60pt;\"><em>a<sup>p<\/sup><\/em><sup>-1<\/sup> \u2261 1 (mod <em>p<\/em>)<\/p>\n<p>In this format Fermat\u2019s Little Theorem serves as the basis for the \u201cFermat Primality Test.\u201d Any number <em>n<\/em> that does not fulfil the criterion<\/p>\n<p style=\"padding-left:60pt;\"><em>a<sup>n<\/sup><\/em><sup>-1<\/sup> \u2261 1 (mod <em>n<\/em>)<\/p>\n<p>where <em>a<\/em> is any integer greater than 1 and less than <em>n<\/em>-1, is not prime. If it does fulfil the criterion, it is probably prime (a Fermat pseudoprime) and the test should be repeated with a different <em>a. <\/em>To be absolutely sure one would have to test all values of a less than sqrt (<em>n<\/em>). The test efficiently determines whether a number is composite, but it can be computationally expensive when determining that it is indeed prime. \u00a0<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Distribution of Primes<\/strong><\/p>\n<p>The prime numbers occur among the more common composite numbers with no regular pattern:<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-in-a-line-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7055\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-in-a-line-scaled.jpg\" alt=\"\" width=\"2560\" height=\"405\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-in-a-line-scaled.jpg 2560w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-in-a-line-300x47.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-in-a-line-1024x162.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-in-a-line-768x122.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-in-a-line-1536x243.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/primes-in-a-line-2048x324.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/p>\n<p>The shortest gap \u2013 between 2 and 3 \u2013 occurs only once. Primes separated by 2 \u2013 twin primes \u2013 occur 8 times in the first 100 numbers. In 1849 Alphonse de Polignac (1826-1863) conjectured that for any number <em>n<\/em> there are an infinite number of consecutive primes separated by <em>n. <\/em>When<em> n <\/em>is 2, this is the \u201ctwin prime conjecture\u201d (Neale, 2017). Neither the twin prime conjecture nor the more generalized de Polignac conjecture has been proven.<\/p>\n<p>The number of primes less than <em>n<\/em> \u2013 the \u201cprime number counting function,\u201d customarily denoted as \u03c0(<em>n<\/em>) \u2013 increases with increasing <em>n<\/em> but the rate of increase decreases as <em>n<\/em> increases. In 1792, at the age of 15, Gauss conjectured that the number was approximated by <em>n<\/em>\/ln(<em>n<\/em>), where \u201cln\u201d denotes the \u201cnatural logarithm\u201d (using the base of <em>e<\/em> equal to 2.71828\u2026). This underestimates \u03c0(n<em>x<\/em>), but the relative error decreases as x increases.<\/p>\n<p>Although it was not published until after his death, Gauss later refined his conjecture, suggesting that \u03c0(<em>n<\/em>) is better approximated by the logarithmic integral of n:<\/p>\n<p>This estimate is the basis for the \u201cprime number theorem:\u201d as <em>n<\/em> increases, \u03c0(<em>n<\/em>) asymptotically approaches Li(<em>n<\/em>). The following illustration shows the prime number counting function with the two different estimates for <em>n<\/em> between 1-100 and 1-1000. There are 25 primes below 100 and 168 below 100. The actual function is a staircase, with steps occurring at each prime. The estimates are smooth functions. \u00a0<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/prime-counting-function-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7053\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/prime-counting-function-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1307\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/prime-counting-function-scaled.jpg 2560w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/prime-counting-function-300x153.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/prime-counting-function-1024x523.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/prime-counting-function-768x392.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/prime-counting-function-1536x784.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/prime-counting-function-2048x1046.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/p>\n<p>The prime gap is the difference between two consecutive prime numbers<\/p>\n<p style=\"padding-left:60pt;\">g<sub>n<\/sub> = p<sub>n+1<\/sub> &#8211; p<sub>n<\/sub><\/p>\n<p>The minimum value of g<sub>n <\/sub>\u00a0is 2 for n&gt;2. The average gap between primes increases as the natural logarithm of these primes, and therefore the ratio of the prime gap to the primes decreases (and is asymptotically zero). The ratio <em>g<sub>n<\/sub><\/em>\/ln(<em>p<sub>n<\/sub><\/em>) is called the \u201cmerit\u201d of a particular gap. There is no known maximal gap. The <a href=\"https:\/\/faculty.lynchburg.edu\/~nicely\/#MaxMerit\">maximum recorded gap<\/a> of 8350 occurred for an 87-digit prime and has a merit value of 41.9. The maximum gap g<em><sub>n<\/sub><\/em> would have to be less than the prime counting function \ud835\udf0b(\ud835\udc5d<em><sub>n<\/sub><\/em>) (Lu &amp; Deng, 2020) \u00a0\u00a0\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>In 1763 Euler introduced what has come to be known as \u201cEuler\u2019s Totient Function.\u201d This function, nowadays denoted as <em>\u03c6<\/em>(<em>n<\/em>), counts the number of positive integers less than a given integer <em>n<\/em> that are relatively prime to <em>n<\/em>. When n is 12 <em>\u03c6<\/em>(<em>n<\/em>) is 4 (the numbers 1, 5, 7, 11) and when n is 13 <em>\u03c6<\/em>(<em>n<\/em>) is 12 (all numbers less than 13). The word \u201ctotient\u201d comes from the Latin<em> tot <\/em>meaning \u201cthat many.\u201d The <a href=\"https:\/\/en.wikipedia.org\/wiki\/Euler%27s_totient_function#\/media\/File:EulerPhi.svg\">illustration<\/a> shows the function up to n of 1000. The upper boundary shows the value when <em>n<\/em> is a prime and <em>\u03c6<\/em>(<em>n<\/em>) is <em>n<\/em>-1.<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-totient-function.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7049\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-totient-function.jpg\" alt=\"\" width=\"2538\" height=\"2402\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-totient-function.jpg 2538w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-totient-function-300x284.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-totient-function-1024x969.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-totient-function-768x727.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-totient-function-1536x1454.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-totient-function-2048x1938.jpg 2048w\" sizes=\"auto, (max-width: 2538px) 100vw, 2538px\" \/><\/a><\/p>\n<p>This function has some intriguing characteristics. Most importantly, for two integers <em>a<\/em> and <em>b<\/em><\/p>\n<p style=\"padding-left:60pt;\"><em>\u03c6<\/em>(<em>ab<\/em>) = <em>\u03c6<\/em>(<em>a<\/em>) <em>\u03c6<\/em>(<em>b<\/em>)<\/p>\n<p>Some sense of this characteristic can be obtained by considering <em>a<\/em> as 6 and <em>b <\/em>as 7: <em>\u03c6<\/em>(6) is 2 (the numbers1 and 5) and <em>\u03c6<\/em>(7) is 6 because 7 is prime. Therefore <em>\u03c6<\/em>(42) is 12 (the numbers 1, 5, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41).\u00a0<\/p>\n<p>\u201cEuler\u2019s Theorem,\u201d an extension of Fermat\u2019s Little Theorem (and sometimes called the \u201cFermat-Euler Theorem\u201d), states<\/p>\n<p style=\"padding-left:60pt;\"><em>a<sup>\u03c6<\/sup><\/em><sup>(<em>n<\/em>)<\/sup> <em>\u2261 <\/em>1 (mod <em>n<\/em>)<\/p>\n<p>The proof of this generalization of Fermat\u2019s theorem is detailed in Wilson (2020, pp 103-108)<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Cryptography<\/strong><\/p>\n<p>For many years the study of primes was considered \u201cpure\u201d mathematics, in that the truths that it proved had no applications in the real world. The famous number theorist G. H. Hardy (1877-1947) claimed<\/p>\n<p style=\"padding-left:30pt;\">I have never done anything \u2018useful&#8217;. No discovery of mine has made, or is likely to make, directly or indirectly, for good or ill, the least difference to the amenity of the world. (Hardy, 1940, p 90)<\/p>\n<p>Over the past half century, the idea of pure mathematics has changed. Prime numbers have become an essential part of real-world cryptography. All the information that is transmitted between buyer and seller when something is bought on the internet is kept safe from prying eyes by means of algorithms that use prime numbers. The most common algorithm was initially proposed by Ron Rivest, Adi Shamir and Leonard Adleman in 1977, and has come to be known as the \u201cRSA cryptosystem.\u201d The following illustration shows Rivest, Shamir and Adleman at theMassachusetts Institute of Technology:<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/rsa-mit-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7058\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/rsa-mit-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1379\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/rsa-mit-scaled.jpg 2560w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/rsa-mit-300x162.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/rsa-mit-1024x552.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/rsa-mit-768x414.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/rsa-mit-1536x828.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/rsa-mit-2048x1104.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/p>\n<p>The following are the basic procedures of the RSA algorithm (Rivest et al, 1977; Crandall &amp; Pomerance, 2005, pp 389-391; Watkins, 2014, pp 369-374; Wilson, 2020, 110-111):<\/p>\n<p>(i) <em>generation of public keys<\/em>:<\/p>\n<p>Two different large prime numbers <em>p<\/em> and <em>q<\/em> are chosen. Nowadays these primes are approximately equal and each about 200 digits in length. A number N is calculated as the product of these two primes, and Euler\u2019s totient (T) is calculated for N. This equals the product of p \u2013 1 and q \u2013 1. Finally, a number E (\u201cencryption key\u201d) is chosen that is greater than 2, less than N-1 and coprime to T. The last characteristic can be ensured by using Euler\u2019s algorithm to show the T and E have 1 as their greatest common divisor (GCD). The number E is typically chosen as a prime number greater than either p or q.<\/p>\n<p style=\"padding-left:60pt;\"><em>N <\/em>= <em>pq<br \/><\/em>T = <em>\u03c6(pq) = <\/em>(<em>p \u2212 <\/em>1)(<em>q \u2013 <\/em>1)<br \/>Choose <em>E <\/em><em>\u2208<\/em> [3<em>, N \u2212 <\/em>2] and GCD(E, T) = 1<\/p>\n<p>The public keys are N and E; <em>p<\/em> and <em>q<\/em> (and T) are kept secret.\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>(ii) <em>encryption of the message<\/em><\/p>\n<p>The message (or part of a message) is coded into a large number M using a simple substitution cipher. For example, each letter could be represented as a two-digit numbers from 01 to 26. M is then encrypted to give the number C (\u201cciphertext\u201d) using public keys N and E according to the formula<\/p>\n<p style=\"padding-left:60pt;\">C \u2261 M<sup>E<\/sup> (mod N)<\/p>\n<p>The number M has increased dramatically, and the clock (modulus N) has revolved many times so that the clock face shows a number C completely different from M. E must be coprime to T to make sure that C does not return as the same number as M.<\/p>\n<p>(iii) <em>decryption of the message<\/em><\/p>\n<p>To decrypt the message, we must calculate a number D (\u201cdecryption key\u201d) that is the modular multiplicative inverse of E<\/p>\n<p style=\"padding-left:60pt;\">DE \u2261 1 (mod T) or D = E<sup>-1<\/sup> mod T<\/p>\n<p>Finding the multiplicative inverse is a simple trial and error process. Iteratively increment k and then calculate (k*E) mod T until it equals 1, at which time D is made equal to k. In an example using small numbers, E of 7 and T of 72 (the totient for 7 and 13)<\/p>\n<p style=\"padding-left:60pt;\">k=1, 7mod72 is 7<br \/>k=2, 14mod72 is 14<br \/>\u2026<br \/>k=30, 210mod72 is 66<br \/>k=31, 217mod72 is 1, therefore D is 31.<\/p>\n<p>Having obtained D, we can decrypt the coded message to obtain the original message according to the formula<\/p>\n<p style=\"padding-left:60pt;\">M \u2261 C<sup>D <\/sup>(mod N)<\/p>\n<p>The number has again increased but after many revolutions the clock face now shows the same number as it was before the original encryption. Because D is the modular multiplicative inverse of E, when the clock wraps around because of E and then because of D it is the same as it the clock face had just stayed the same. \u00a0\u00a0\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>(iv)<em> example<\/em><\/p>\n<p>The following is an example using small numbers<\/p>\n<p style=\"padding-left:60pt;\">Let p=3 and q=11; N=pq=33<\/p>\n<p style=\"padding-left:60pt;\">T = (p-1)*(q-1) = 2*10 = 20<\/p>\n<p style=\"padding-left:60pt;\">Let E = 7, check GCD(7,20)=1<\/p>\n<p style=\"padding-left:60pt;\">Find D to ensure (D*E)mod20=1<\/p>\n<p style=\"padding-left:60pt;\">Determine D to be 3 because 3*7mod20=1<\/p>\n<p style=\"padding-left:60pt;\">Let M = 31<\/p>\n<p style=\"padding-left:60pt;\">Encrypt message as C=M<sup>E<\/sup>modN = 31<sup>7<\/sup>mod33 =4<\/p>\n<p style=\"padding-left:60pt;\">Decrypt message as C<sup>D<\/sup>modN = 4<sup>3<\/sup>mod33=31<\/p>\n<p>\u00a0<\/p>\n<p>(v) <em>breaking the code<\/em>.<\/p>\n<p>In order to break the RSA code an outside observer would have to find D. This would require finding the two primes <em>p<\/em> and <em>q<\/em> that when multiplied together gave the public number. From <em>p<\/em> and <em>q<\/em> one would know T. Then one could derive D. Finding <em>p<\/em> and <em>q<\/em> would require factoring N, a computationally demanding task when N is very large. The RSA system remains safe provided that it takes longer to compute the factors of N than the length of time that the system uses any particular numbers p and q.<\/p>\n<p>\u00a0<\/p>\n<p><strong>Zeta Function<\/strong><\/p>\n<p>In his studies of infinite series published in 1737, Euler proved a remarkable identity:<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-7048\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-300x114.jpg\" alt=\"\" width=\"300\" height=\"114\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-300x114.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-1024x388.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-768x291.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-1536x583.jpg 1536w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-2048x777.jpg 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The left side of the equation shows the sum of the reciprocals of all natural numbers raised to the power <em>s. <\/em>The has become known as \u03b6(<em>s<\/em>) or the \u201czeta function\u201d<\/p>\n<p style=\"padding-left:60pt;\">\u03b6(<em>s<\/em>) = 1\/1<sup>s<\/sup> + 1\/2<sup>s<\/sup> + 1\/3<sup>s<\/sup> + 1\/4<sup>s<\/sup>\u2026<em>.<\/em>+ 1\/<em>n<\/em><sup>s<\/sup><\/p>\n<p>The right side of the equation is a product of multiple terms each involving one of the prime numbers:<\/p>\n<p style=\"padding-left:60pt;\">\u03b6(<em>s<\/em>) = 1\/(1-2<sup>-s<\/sup>) * 1\/(1-3<sup>-s<\/sup>) * 1\/(1-5<sup>-s<\/sup>) * 1\/(1-7<sup>-s<\/sup>) \u2026<em>.<\/em>* 1\/(1-p<sup>-s<\/sup>)<\/p>\n<p>When<em> s <\/em>is 2, the function is the sum of the reciprocals of all the natural numbers squared:<\/p>\n<p style=\"padding-left:60pt;\">\u03b6(<em>2<\/em>) = 1\/1<sup>2<\/sup> + 1\/2<sup>2<\/sup> + 1\/3<sup>2<\/sup> + 1\/4<sup>2<\/sup>\u2026<em>.<\/em>+ 1\/<em>n<\/em><sup>2<\/sup><\/p>\n<p>Euler demonstrated that \u03b6(<em>2<\/em>) = \u03c0<sup>2<\/sup>\/6. This was intriguing since the zeta equation now linked the natural numbers to the irrational number \u03c0. \u00a0Euler also proved that \u03b6(4) is \u03c0<sup>4<\/sup>\/90 and \u03b6(6) is \u03c0<sup>6<\/sup>\/945. Values of the function for odd values of <em>s<\/em> have no clear formulation. \u00a0<\/p>\n<p>To prove his product function, Euler used a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Proof_of_the_Euler_product_formula_for_the_Riemann_zeta_function\">sieving approach<\/a> as illustrated below:<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-proof.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7047\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-proof.jpg\" alt=\"\" width=\"2012\" height=\"1928\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-proof.jpg 2012w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-proof-300x287.jpg 300w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-proof-1024x981.jpg 1024w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-proof-768x736.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/euler-product-proof-1536x1472.jpg 1536w\" sizes=\"auto, (max-width: 2012px) 100vw, 2012px\" \/><\/a><\/p>\n<p>In 1859 Bernhard Riemann considered Euler\u2019s zeta function using complex variables He made <em>s<\/em>\u00a0=\u00a0<em>\u03c3<\/em>\u00a0+\u00a0<em>it<\/em>, where\u00a0<em>\u03c3<\/em>\u00a0and\u00a0<em>t<\/em>\u00a0are real numbers and <em>i<\/em> is the square root of -1. Using values derived from this function he was able to adjust Euler\u2019s prime number theorem \u2013 as <em>n<\/em> increases, \u03c0(<em>n<\/em>) asymptotically approaches Li(<em>n<\/em>) \u2013 so that it accurately represented the actual staircase function that is <em>\u03c0<\/em>(<em>n<\/em>).<\/p>\n<p>The Riemann Zeta Function is as complex as its variable, and I am afraid I find it impossible to understand. Both Derbyshire (2003) and Du Sautoy (2003) have written books about the function. In his original paper Riemann also proposed a hypothesis about the nontrivial zero-values of the function that appear on a line where the real value of the variable equals \u00bd. His hypothesis holds for all values of the function so far examined. However, the hypothesis is not yet proven. The Clay institute has offered a prize of 1\u00a0million dollars for the proof. I shall not be collecting this prize, but I shall enthusiastically applaud its winner.<\/p>\n<p>The following <a href=\"https:\/\/www.youtube.com\/watch?v=zlm1aajH6gY\">video<\/a> was made for Quanta Magazine by Alex Kontorivich about the Riemann Zeta Function and the Riemann Hypothesis.<\/p>\n<div style=\"width: 480px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-7060-1\" width=\"480\" height=\"270\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/riemann-video.mp4?_=1\" \/><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/riemann-video.mp4\">https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/riemann-video.mp4<\/a><\/video><\/div>\n<p>\u00a0<\/p>\n<p><strong>Epilogue<\/strong><\/p>\n<p>We can conclude with a quotation from Du Sautoy (2003, p 6) about the primes:<\/p>\n<p style=\"padding-left:30pt;\">Prime numbers present mathematicians with one of the strangest tensions in their subject. On the one hand a number is either prime or it isn&#8217;t. No flip of a coin will suddenly make a number divisible by some smaller number. Yet there is no denying that the list of primes looks like a randomly chosen sequence of numbers. Physicists have grown used to the idea that a quantum die decides the fate of the universe, randomly choosing at each throw where scientists will find matter. But it is something of an embarrassment to have to admit that these fundamental numbers on which mathematics is based appear to have been laid out by Nature flipping a coin, deciding at each toss the fate of each number. Randomness and chaos are anathema to the mathematician. Despite their randomness, prime numbers &#8211; more than any other part of our mathematical heritage &#8211; have a timeless, universal character. Prime numbers would be there regardless of whether we had evolved sufficiently to recognise them.<\/p>\n<p>In Paolo Gordano\u2019s 2010 novel <em>The Solitude of the Primes<\/em>, the character Mattia muses<\/p>\n<p style=\"padding-left:30pt;\">Prime numbers are divisible only by one and by themselves. They stand in their place in the infinite series of natural numbers, squashed in between two others, like all other numbers, but a step further on than the rest. They are suspicious and solitary, which is why Mattia thought they were wonderful. Sometimes he thought that they had ended up in that sequence by mistake, that they\u2019d been trapped like pearls on a necklace. At other times he suspected that they too would rather have been like all the others, just ordinary numbers, but for some reason they weren\u2019t capable of it. (p 111)<\/p>\n<p>And we cannot leave the topic without some praise for the mathematicians that discovered so much about them. The following are portraits of some of these marvelous thinkers. They all contributed extensively to our knowledge beyond their work with the primes. Fermat worked with Pascal on the mathematics of probability; Gauss was the first to measure the earth\u2019s magnetic field; Euler proposed his \u201cidentity:\u201d<\/p>\n<p style=\"padding-left:60pt;\">e<sup>i\u03c0 <\/sup>+ 1 =0<\/p>\n<p>which united the logarithms, pi and imaginary numbers just like his product formula united the natural numbers, primes and pi; and Riemann worked on the non-Euclidean geometry that Einstein would use in his Theory of relativity.\u00a0<\/p>\n<p><a href=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-euler-gauss-riemann-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7050\" src=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-euler-gauss-riemann-scaled.jpg\" alt=\"\" width=\"1880\" height=\"2560\" srcset=\"https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-euler-gauss-riemann-scaled.jpg 1880w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-euler-gauss-riemann-220x300.jpg 220w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-euler-gauss-riemann-752x1024.jpg 752w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-euler-gauss-riemann-768x1046.jpg 768w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-euler-gauss-riemann-1128x1536.jpg 1128w, https:\/\/creatureandcreator.ca\/wp-content\/uploads\/2025\/12\/fermat-euler-gauss-riemann-1504x2048.jpg 1504w\" sizes=\"auto, (max-width: 1880px) 100vw, 1880px\" \/><\/a><\/p>\n<p><strong>References<\/strong><\/p>\n<p>Crandall, R. E., &amp; Pomerance, C. (2005). <em>Prime numbers: a computational perspective<\/em> (Second Edition). Springer.<\/p>\n<p>Derbyshire, J. (2003). <em>Prime obsession: Bernhard Riemann and the greatest unsolved problem in mathematics<\/em>. Joseph Henry Press<\/p>\n<p>Du Sautoy, M. (2003). <em>The music of the primes: searching to solve the greatest mystery in mathematics<\/em>. HarperCollins.<\/p>\n<p>Giordano, P. (2010). <em>The solitude of prime numbers<\/em>. Penguin<\/p>\n<p>Hardy, G. H. (1940). <a href=\"https:\/\/archive.org\/details\/dli.ernet.509680\/page\/n5\/mode\/2up\">A mathematician\u2019s apology<\/a>. Cambridge University Press.<\/p>\n<p>Jones, J. P., Sato, D., Wada, H., &amp;Wiens, D., (1976). <a href=\"http:\/\/mathdl.maa.org\/images\/upload_library\/22\/Ford\/JonesSatoWadaWiens.pdf\">Diophantine representation of the set of prime numbers.<\/a> <em>The American Mathematical Monthly<\/em>, 83, 449-464.<\/p>\n<p>Lamb, E. (2019). <a href=\"https:\/\/www.scientificamerican.com\/blog\/roots-of-unity\/why-isnt-1-a-prime-number\/\">Why isn&#8217;t 1 a prime number? And how long has it been a number?<\/a> Scientific American Blog.<\/p>\n<p>Lu, Y.-P. &amp; Deng, S.-F. (2020). An upper bound for the prime gap. <a href=\"https:\/\/arxiv.org\/abs\/2007.15282\">arXiv:2007.15282<\/a><\/p>\n<p>Mackinnon, N. (1987). Prime number formulae. <em>The Mathematical Gazette<\/em>, 71(456), 113\u2013114.<\/p>\n<p>Neale, V. (2017). <em>Closing the gap: the quest to understand prime numbers<\/em>. Oxford University Press.<\/p>\n<p>Nicastro, N. (2008). <em>Circumference: Eratosthenes and the ancient quest to measure the globe<\/em>. St. Martin&#8217;s Press.<\/p>\n<p>Riemann, G. F. B. (1859). \u00dcber die Anzahl der Primzahlen unter einer gegebenen Gr\u00f6sse. <em>Monatsber. K\u00f6nigl. Preuss. Akad. Wiss. Berlin<\/em>, 671-680. <a href=\"https:\/\/www.maths.tcd.ie\/pub\/HistMath\/People\/Riemann\/Zeta\/EZeta.pdf\">English translation by D. R. Wilkins<\/a><\/p>\n<p>Rivest, R.L., Shamir, A., &amp; Adleman, L. (1977). <a href=\"https:\/\/publications.csail.mit.edu\/lcs\/pubs\/pdf\/MIT-LCS-TM-082.pdf\"><em>A Method for Obtaining Digital Signatures and Public-Key Cryptosystems<\/em><\/a>(Technical report). MIT Laboratory for Computer Science.<\/p>\n<p>Watkins, J. J. (2014). <em>Number theory: a historical approach<\/em>. Princeton University Press.<\/p>\n<p>Wilson, R. J. (2020). <em>Number theory: a very short introduction<\/em>. Oxford University Press.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 A prime number is one that can only be divided by 1 and itself. Prime numbers are the building blocks for all the natural numbers, each of which can be expressed as a unique product of primes. Although their primacy can be proven by<\/p>\n","protected":false},"author":1,"featured_media":7056,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":194,"footnotes":""},"categories":[3,745],"tags":[1124,1131,1129,1123,1126,1122,1125,1121,1130,1127,1128],"class_list":["post-7060","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-history","category-mathematics","tag-bernhard-riemann","tag-erastosthenes","tag-euclid","tag-friedrich-gauss","tag-goldbachs-conjecture","tag-leonhard-euler","tag-number-theory","tag-pierre-de-fermat","tag-prime-number-theorem","tag-riemann-hypothesis","tag-twin-primes"],"_links":{"self":[{"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=\/wp\/v2\/posts\/7060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7060"}],"version-history":[{"count":3,"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=\/wp\/v2\/posts\/7060\/revisions"}],"predecessor-version":[{"id":7063,"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=\/wp\/v2\/posts\/7060\/revisions\/7063"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=\/wp\/v2\/media\/7056"}],"wp:attachment":[{"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/creatureandcreator.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}