in reply to Re^2: Finding the next larger prime. (conclusions)
in thread Finding the next larger prime.

So, what your saying (if I interpret you correctly:), is that despite all of the revisions and improvements made to the Prime Number Theorum, the margin for error for the lower bound for a given prime P will always be greater than the distance between P and P-1?

If so, its a shame none of the reference material I read actually states that minor caveat! Or maybe they did, but not in a way that I understood.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!

  • Comment on Re: Re^2: Finding the next larger prime. (conclusions)

Replies are listed 'Best First'.
Re^4: Finding the next larger prime. (conclusions)
by tye (Sage) on Oct 30, 2003 at 20:20 UTC

    I assume the articles didn't bother to state that because it isn't particularly relavent to what they are discussing and they probably consider it obvious. (:

    Of course the bounds are not accurate to a "distance" of around 1 or 2! No such bound can ever be more accurate than the "after P try P+2" idea (or else it would be incorrect) or even equally as accurate (or else it would be exact and constitute a closed formula for computing primes).

    Ah! Perhaps you aren't aware that...

    No matter how large of numbers you deal with, you can find (P such that) P and P+2 that are both prime and you can find arbitrarily large D such that (there is a P where) P and P+D are adjacent primes (as I recall, the proofs of these aren't even very complicated, involving N! with +1 and/or -1 inserted here and there).

    That is, even extremely large adjacent primes can be as close together as 2 or very far apart. The theorems you've been reading put bounds on how big you have to make P before you can get D to be a desired size.

    (updated)

                    - tye

      I have read that there are an infinite number of Ns where N-1 and N+1 are both prime, but I never made the connection between that and this -- till now. Why they couldn't just say that in the first place...

      As I said in the original post, this was a half remembered impression I picked up from reading something that I readily admit to not fully understanding. {sigh}

      From my perspective, this make the Prime Number Theorum about as useful as knowing that you can cause perl to dump core in 6 characters. It's statable and provably true (so I read), but beyond that it's nothing more than an object of curiosity.

      I realise my problem is my own ignorance, but I wish these darn things carried a Management Summary and a ROI value that one could assess before getting drawn in to actually trying to understand them:)


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail
      Hooray!

        Unfortunately, you are _technically_ incorrect. The fact that you can always find an N such that N-1 and N+1 are primes has been conjectured, but it has not been proven. Of course, it's a good as true but you can never be sure. Still a good starting place though.

        The algorithm that tye is probably referring to is one which states that you can find an arbitrarily long sequence of sequential composite numbers if you look high enough.

        Here it is:
        Let D be the length of the composite run.
        Let us examine the sequence:

        (D+1)!+2,(D+1)!+2,(D+1)!+3,...,(D+1)!+D+1

        Then clearly the first term is divisible by 2 (since the factorial is defined as (1*2*...n)), and by the same logic the second term is divisible by 3, and the 3rd by four. Obviously (from the definition of a factorial), all the terms have a factor greater than 2, and this sequence of D numbers is thus composite. QED.