Safekipedia

Prime number theorem

Adapted from Wikipedia Β· Discoverer experience

A chart showing how many prime numbers end in 1, 3, 7, or 9 up to the number 10,000.

In mathematics, the prime number theorem (PNT) helps us understand how prime numbers are spread out among all the whole numbers. It tells us that as numbers get bigger, prime numbers become rarer, and it shows exactly how much rarer they get. This important idea was proven in 1896 by two mathematicians, Jacques Hadamard and Charles Jean de la VallΓ©e Poussin, using work started by Bernhard Riemann.

The theorem says that for very large numbers, the chance that a random number is prime is about one divided by the natural logarithm of that number. This means the space between prime numbers grows slowly as numbers get bigger. For example, among numbers with up to 1000 digits, about one in 2300 is prime, while among numbers with up to 2000 digits, about one in 4600 is prime. This helps mathematicians predict where prime numbers might be found, even for very large numbers.

Statement

Imagine you are counting how many prime numbers there are up to a certain number. For example, up to the number 10, there are 4 prime numbers: 2, 3, 5, and 7. The prime number theorem tells us that as numbers get really big, the number of primes up to that point can be approximated by dividing the number by its natural logarithm.

This means that for very large numbers, the number of primes is roughly the number itself divided by how many times you need to multiply it by e (about 2.718) to reach it. The theorem was proven in 1896 by two mathematicians, using ideas from another mathematician about a special math function.

History of the proof of the asymptotic law of prime numbers

People have long wondered how often prime numbers appear as numbers get bigger. In the late 1700s, mathematicians like Adrien-Marie Legendre and Carl Friedrich Gauss made guesses about how to count primes. In the 1800s, Pafnuty Chebyshev made important steps toward proving these guesses, showing that primes are fairly regular in how often they show up.

Finally, in 1896, Jacques Hadamard and Charles Jean de la VallΓ©e Poussin proved the Prime Number Theorem together. They showed that primes become less common as numbers grow, and they found exactly how much less common. Their work built on ideas from another famous mathematician, Bernhard Riemann, who connected primes to complex numbers. Since then, many other mathematicians have found new ways to prove this important theorem.

Proof sketch

Here is a simple idea behind one way to understand why primes get rarer as numbers grow bigger. We start by counting primes in a special way, using a tool called the Chebyshev function, written as ψ(x). This function helps us see patterns more clearly.

The big idea is that if we look at ψ(x) compared to x, we find they grow in the same way. This means the number of primes up to x grows roughly like x divided by log x, which is the main point of the prime number theorem.

To understand ψ(x), we use another important math tool called the Riemann zeta function. By studying its patterns, we can show that ψ(x) behaves nicely, and this helps prove the theorem. While the full proof is very detailed, this gives a glimpse into why the theorem works.

Newman's proof of the prime number theorem

D.J. Newman created a clear way to show the prime number theorem. This proof uses ideas from complex numbers, like Cauchy's integral formula and Cauchy's integral theorem, but stays close to basic math ideas.

The proof looks at a special math idea called the Chebyshev function Ο‘(x). By studying how this function behaves, Newman showed that certain math parts fit together in a way that proves the prime number theorem. This means we can understand how prime numbers are spread out among all whole numbers.

Prime-counting function in terms of the logarithmic integral

In 1838, a mathematician named Dirichlet suggested a better way to guess how many prime numbers there are up to a certain number. He used a special math tool called the offset logarithmic integral, written as Li(x).

This idea connects to how often primes appear, suggesting that the "density" of primes around a number t is about 1 divided by the logarithm of t.

Later, in 1899, another mathematician showed that the prime number theorem could also be expressed using this logarithmic integral. Even today, mathematicians are working to make these guesses even better and more exact.

Elementary proofs

In the middle of the 1900s, some mathematicians thought that proving the prime number theorem needed very complex math. But in 1948, Atle Selberg found a way to prove it using simpler tools. Soon after, Paul ErdΕ‘s also found a simple proof. These proofs showed that the prime number theorem wasn’t as complex as people thought.

Later, Florian Richter used a different area of math called ergodic theory to prove the theorem in another way. These different proofs helped mathematicians understand the theorem better and showed that simple methods could be very powerful.

Computer verifications

In 2005, some mathematicians used a special computer tool called Isabelle to check a proof of the prime number theorem. This was the first time a computer had checked this important math idea. They chose this method because the tool could handle some math ideas but not others.

In 2009, another mathematician used a different tool called HOL Light to check the proof in another way. He built up the needed math skills to make the proof clear and neat.

Prime number theorem for arithmetic progressions

This part of the prime number theorem looks at how prime numbers are spread out in special number patterns called arithmetic progressions. It says that if two numbers have no common factors other than 1, the primes will appear evenly in certain patterns. This was proven using clever mathematical methods.

There is something interesting called a "prime number race." For example, when looking at primes that end in certain digits, one group often has more primes than another for a while, but then they switch places many times. This back-and-forth happens infinitely often, which is a curious pattern in numbers.

Non-asymptotic bounds on the prime-counting function

Main article: Prime-counting function Β§Β Inequalities

The prime number theorem tells us about how primes are spread out among bigger numbers. It is an asymptotic result, meaning it talks about what happens when numbers get really large. This theorem gives us a way to estimate how many primes there are up to a certain number, but it doesn’t give a exact count. Instead, it says that for any small number Ξ΅ greater than 0, there is a point S so that for all numbers x bigger than S, the number of primes up to x is between (1 βˆ’ Ξ΅) times x divided by the natural logarithm of x and (1 + Ξ΅) times x divided by the natural logarithm of x.

Similarly, there are also bounds for how far the actual count of primes can be below this estimate. For any Ξ΅ between 0 and 1, there is a number S so that for all x bigger than S, the number of primes up to x is at least (1 βˆ’ Ξ΅) times x divided by the natural logarithm of x.

Approximations for the _n_th prime number

The prime number theorem helps us guess where the _n_th prime number will be. A simple way to think about it is that the _n_th prime, written as pn, is about n times the natural logarithm of n.

Better ways to guess this use more detailed math, like the CesΓ ro method from 1894. Even very big prime numbers can be guessed pretty closely this way. For example, for the 2Γ—1017th prime, the guess was off by only a tiny amount.

Table of Ο€(x), x / log x, and li(x)

This table shows how many prime numbers there are up to a certain number, called Ο€(x), and compares it to two ways of guessing this number: x / log x and li(x). The table also shows how close these guesses are to the real number of primes.

The number of primes up to 1024 was first found using a special idea called the Riemann hypothesis, but it has since been checked without needing that idea.

xΟ€(x)Ο€(x) βˆ’ ⁠x/log(x)⁠li(x) βˆ’ Ο€(x)% error⁠x/Ο€(x)⁠
⁠x/log(x)⁠li(x)
104028.22%42.606%2.500
102253514.06%18.597%4.000
103168231014.85%5.561%5.952
1041,2291431712.37%1.384%8.137
1059,592906389.91%0.393%10.425
10678,4986,1161308.11%0.164%12.739
107664,57944,1583396.87%0.051%15.047
1085,761,455332,7747545.94%0.013%17.357
10950,847,5342,592,5921,7015.23%3.34Γ—10βˆ’3Β %19.667
1010455,052,51120,758,0293,1044.66%6.82Γ—10βˆ’4Β %21.975
10114,118,054,813169,923,15911,5884.21%2.81Γ—10βˆ’4Β %24.283
101237,607,912,0181,416,705,19338,2633.83%1.02Γ—10βˆ’4Β %26.590
1013346,065,536,83911,992,858,452108,9713.52%3.14Γ—10βˆ’5Β %28.896
10143,​204,​941,​750,​802102,838,308,636314,8903.26%9.82Γ—10βˆ’6Β %31.202
101529,​844,​570,​422,​669891,604,962,4521,052,6193.03%3.52Γ—10βˆ’6Β %33.507
1016279,​238,​341,​033,​9257,​804,​289,​844,​3933,214,6322.83%1.15Γ—10βˆ’6Β %35.812
10172,​623,​557,​157,​654,​23368,​883,​734,​693,​9287,956,5892.66%3.03Γ—10βˆ’7Β %38.116
101824,​739,​954,​287,​740,​860612,​483,​070,​893,​53621,949,5552.51%8.87Γ—10βˆ’8Β %40.420
1019234,​057,​667,​276,​344,​6075,​481,​624,​169,​369,​96199,877,7752.36%4.26Γ—10βˆ’8Β %42.725
10202,​220,​819,​602,​560,​918,​84049,​347,​193,​044,​659,​702222,744,6442.24%1.01Γ—10βˆ’8Β %45.028
102121,​127,​269,​486,​018,​731,​928446,​579,​871,​578,​168,​707597,394,2542.13%2.82Γ—10βˆ’9Β %47.332
1022201,​467,​286,​689,​315,​906,​2904,​060,​704,​006,​019,​620,​9941,932,355,2082.03%9.59Γ—10βˆ’10Β %49.636
10231,​925,​320,​391,​606,​803,​968,​92337,​083,​513,​766,​578,​631,​3097,250,186,2161.94%3.76Γ—10βˆ’10Β %51.939
102418,​435,​599,​767,​349,​200,​867,​866339,​996,​354,​713,​708,​049,​06917,146,907,2781.86%9.31Γ—10βˆ’11Β %54.243
1025176,​846,​309,​399,​143,​769,​411,​6803,​128,​516,​637,​843,​038,​351,​22855,160,980,9391.78%3.21Γ—10βˆ’11Β %56.546
10261,​699,​246,​750,​872,​437,​141,​327,​60328,​883,​358,​936,​853,​188,​823,​261155,891,678,1211.71%9.17Γ—10βˆ’12Β %58.850
102716,​352,​460,​426,​841,​680,​446,​427,​399267,​479,​615,​610,​131,​274,​163,​365508,666,658,0061.64%3.11Γ—10βˆ’12Β %61.153
1028157,​589,​269,​275,​973,​410,​412,​739,​5982,​484,​097,​167,​669,​186,​251,​622,​1271,​427,​745,​660,​3741.58%9.05Γ—10βˆ’13Β %63.456
10291,​520,​698,​109,​714,​272,​166,​094,​258,​06323,​130,​930,​737,​541,​725,​917,​951,​4464,​551,​193,​622,​4641.53%2.99Γ—10βˆ’13Β %65.759

Analogue for irreducible polynomials over a finite field

There is a version of the prime number theorem that talks about special kinds of equations called "irreducible polynomials" over a finite field. These polynomials act like prime numbers because all other polynomials can be built from them.

When we count these special polynomials of a certain size, we find that their number relates to the size in a clear way. This makes it easier to understand how common or rare these polynomials are, much like how the prime number theorem tells us about the distribution of prime numbers.

Related articles

This article is a child-friendly adaptation of the Wikipedia article on Prime number theorem, available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.