Number of Primes between two integers

  • Thread starter Thread starter Cheung
  • Start date Start date
  • Tags Tags
    Integers Primes
AI Thread Summary
There is currently no known formula that can calculate the exact number of prime numbers between two integers without prior knowledge of those primes. While methods like Legendre's and Miessel's provide exact counts, they rely on previously identified primes. The Prime Number Theorem suggests that as numbers approach infinity, prime distribution can be estimated, but this does not yield an exact count. The use of the prime counting function pi(n) is acknowledged, but it is often viewed as an algorithm rather than a straightforward formula. The discussion emphasizes the ongoing search for a true formula that would define the number of primes solely based on two given boundaries.
Cheung
Messages
3
Reaction score
0
Is there a formula to calculate the EXACT number of primes between two integers? There are many very good ways of ESTIMATING the number but I have found very few that give the EXACT number, and those that do essentially require the knowledge of primes before hand (Legendre and Miessel.) While those are all nice I am looking for a formula (not an algorithm) that will spit out the EXACT number of primes by knowing only the two boundaries. Has it been done?
 
Mathematics news on Phys.org
Exact? No. But as the numbers in question approach infinity, they behave more accordingly to the Prime Number Theorem.
 
With the use of pi(n) you could easily construct a forumula for the number of primes between two integers i and j. However, I imagine that you would classify pi(n) as being an "algorithm" rather than a "formula".

http://mathworld.wolfram.com/PrimeCountingFunction.html
 
Thank you both for your reply's and to jbriggs444 I would consider using the logarithmic pi(x) an algorithm. I am looking for a formula/ function that would shed more light on the distribution of primes by solving for the number of primes using only the two integer limits.
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top