r/askscience • • Oct 31 '13

Mathematics Is there a largest Prime Number?

[deleted] — view deleted post

24 Upvotes

50 comments sorted by

28

u/[deleted] Oct 31 '13

Astrowiki's answer is correct, but let me expand on it a little more with three more things:

  1. What does it mean that it's proven? When a mathematician says it's "proven" means that there exists a proof. A mathematical proof is a series of simple steps that can be verified easily by anyone to be correct, leading from a know thing (either another proven theorem or a property of the system you're working in) to the statement you want to prove. Note that "simple" can mean different things here, e.g. "simple for someone in the field" or "simple for someone with extensive knowledge of the previous work". Since each of these steps must only rely on basic logic and on things you know to be true before, a mathematical proof is forever. Everything that's proven mathematically is true forever. And that's the beauty of mathematics: Mathematicians today use the same theorems and the same logic and the same systems as those two thousand years ago, and anything a mathematician proves today will still be true in two thousand years. Look up http://en.wikipedia.org/wiki/Euclid if you want to know more about this!
  2. Does there exist a largest prime number? No, there doesn't. There are various proofs of this, and each of them comes up pretty quickly in any mathematical education you can get. Your teacher should really know this. The proof for this is, in fact, more than two thousand years old (and can be found here: http://en.wikipedia.org/wiki/Prime_number#Euclid.27s_proof ). However, there is a largest known prime number, i.e. the largest number we know to be a prime number. These numbers often come out of computerized tests and there's a kind of a competition between mathematicians over who can find the largest prime number (i.e. find a number X that is larger number than the largest known prime number and prove that x is a prime number).
  3. Why is this interesting? Because prime numbers are wonderfully complicated and deeply structured things. You don't think so when you first look at them: 2, 3, 5, 7, 11, 13, 17, ... No structure there, eh? Even when you go further out, it's not readily apparent that there's any semblance of structure. However, when you look deeper at it, you can find out that prime numbers are linked to all kinds of things and are really very, very finely structured. Just look at the pictures in this article to see this: http://en.wikipedia.org/wiki/Prime_number_theorem or this http://en.wikipedia.org/wiki/Ulam_spiral The exact layout and the exact way and reason of this structure is one of the oldest and well-known mathematical problems in existence. So, finding out more about prime numbers and their distribution is basically finding out more about all the parts of mathematics that are connected with it.

And that's awesome!

11

u/hikaruzero Oct 31 '13 edited Oct 31 '13

And that's the beauty of mathematics: Mathematicians today use the same theorems and the same logic and the same systems as those two thousand years ago

Gotta correct you here -- this definitely isn't true. Modern mathematics is founded in Zermelo-Fraenkel set theory with the axiom of Choice (ZFC), which has only been around for less than the past century. There are many other types of set and model theories with different axioms and where different rules apply. All of these are beyond naive set theory, which had unresolvable paradoxes, as Bertrand Russel showed. In his book Principia Mathematica he attempts to develop a provably complete and consistent set of axioms that allows all true/false propositions to be resolved, but even since then (less than 100 years ago), Kurt Gödel demonstrated that such a thing was impossible with his incompleteness theorem.

And it's not only set theory that has seen much advancement in the recent past, but also logic, as seen where the much older attempts/successes at modelling simple propositional logic were built upon to produce first-order logics and later, higher-order logics, among various others. These days we are even exploring quantum logic, which lacks the distributive law among other things.

There have been many advances over time, and things which can be proven true or false in one logic or set theory are occasionally either the opposite, or unprovable/undisprovable in another. For example, the consistency of ZFC cannot be proven within ZFC itself, but it can be proven within Morse-Kelley set theory, which is an extension of ZFC to include proper classes. Or if you add the axiom of constructability to ZFC, it becomes possible to prove the continuum hypothesis (which can be neither proven or disproven in standard ZFC), whereas with Freiling's axiom of symmetry, the continuum hypothesis is disproven.

2

u/[deleted] Oct 31 '13

[removed] — view removed comment

2

u/hikaruzero Nov 01 '13 edited Nov 01 '13

But it would be inaccurate to then say that we aren't using the same theorems and logic as the ancients did.

The charge made was that "Everything that's proven mathematically is true forever." I disputed that and gave counter-examples, showing that things proven in one system can be disproven in another, and neither-nor in yet another. There was also the claim that "Mathematicians today use the same theorems and the same logic and the same systems as those two thousand years ago." I do not recall any ancients coming up with even first-order logic, or any axiomatic set theory whatsoever, both of which only saw the light of day within the past hundred years or so.

Neither of the above, previously-given statements are true. It is no matter of philosophy -- it is a matter of truth. Even given in the framework of prepositional logic, those statements yield false as a value.

Modern logic is more rigorous -- composed of relationships and axioms, and not of words. The logic of the ancients is more fallible -- composed mostly of words, as with prepositional logic, and observations, as with classical mechanics. The same goes for many of their theorems, and experiments justifying them. Even hundreds of years ago, proofs were given of mathematical certainties -- even within this century -- and yet more than a handful of them have been disproven even in the very systems they were "proven" within. Gödel's work invalidating Russel's book is demonstration thereof. We should, of course, not dispense with the wisdom of old, but recognize its shortcomings and incorporate it into a more worthy framework.

It is never admissible to speak that beyond a shadow of a doubt, any thing is proven. Proven within some limited artificial framework perhaps, but that does not extend to nature or the mathematics that may or may not describe nature.

In any event Euclid's proof that there are infinitely many primes ports over into ZFC in an obvious way.

And tell me, does Euclid's geometry stand unmarred in the face of modern physical theories? Is spacetime as we now know it to be, modelled by Euclidean geometry, as the man himself envisioned? Even the wisest of the ancients still fell short of the mark. Even the wisest among us today, fall short of the mark. No man can claim certainty of truth. We can only look at the evidence available to us and reason toward our own satisfaction.

1

u/JoshuaZ1 Nov 01 '13

Part of the issue here may be what you mean by "system". If you mean "system" as "axiomatic system" you are correct. But if you mean things like naive interpretations of the integers and Euclidean geometry (which we use all the time still without going back to the axiomatic basis), then that we are using the same ideas.

I do not recall any ancients coming up with even first-order logic

Sure, FOL doesn't arise until the end of the 19th century. But you can do math without having a formal notion of first order logic. To claim that Euclid's proof of the infinitude of primes is substantially different from a modern one is to miss the point. The essential proof is the same: the only change is the degree of rigor.

ancients is more falliable -- composed only of words, as prepositional logic. The same goes for many of their theorems. Even hundreds of years ago, proofs were given of mathematical certainties -- even this century -- and yet more than a handful of them have been disproven even in the very systems they were "proven" within. Russel's work is proof of that.

Only to a point. All the time, even today papers are published that then turn out to be wrong, either to have gaps in the proofs of true theorems, or to prove claims that then turn out to be false. Our use of a rigorous backbone doesn't make the math we do infallible.

I agree with your last paragraph, but fail to see its relevance to the discussion at hand.

0

u/hikaruzero Nov 01 '13 edited Nov 01 '13

Part of the issue here may be what you mean by "system". If you mean "system" as "axiomatic system" you are correct. But if you mean things like naive interpretations of the integers and Euclidean geometry (which we use all the time still without going back to the axiomatic basis), then that we are using the same ideas.

And does nature describe phenomena as Euclidean? Does nature favour that system above others? Does nature yield integers as the results of measurements?

Sure, FOL doesn't arise until the end of the 19th century. But you can do math without having a formal notion of first order logic. To claim that Euclid's proof of the infinitude of primes is substantially different from a modern one is to miss the point. The essential proof is the same: the only change is the degree of rigor.

The bolded statement here is the most relevant -- there is a certain rigour that is lacking in ancient reasoning that is present today, and there is a certain rigour that is lacking in today's reasoning that may be present in the future. For these reasons, there stands no man who can claim truth with certainty.

Only to a point. All the time, even today papers are published that then turn out to be wrong, either to have gaps in the proofs of true theorems, or to prove claims that then turn out to be false. Our use of a rigorous backbone doesn't make the math we do infallible.

It's not the use of a rigorous backbone that makes the math we do infallible -- indeed, it was never suggested that our math is infallible to begin with. My position is that it is fallible, just as the ancients' math was.

I agree with your last paragraph, but fail to see its relevance to the discussion at hand.

So you fail to see how such a "perfect" and even "axiomatic" thing as Euclidean geometry can be replaced with a more dynamical, yet more complete, more accurate system? Human logic is the thing that is fallible -- including all that it involves -- and mathematics as we know it is based upon human logic. To say that mathematics as set forth through human logic is "true forever," or even that "we use the same systems as the ancients today" -- again, I say outright, both claims are demonstrably false. That is the relevance.

1

u/JoshuaZ1 Nov 01 '13

And does nature describe phenomena as Euclidean? Does nature yield integers as the results of measurements?

No. So what?

The bolded statement here is the most relevant -- there is a certain rigour that is lacking in ancient reasoning that is present today, and there is a certain rigour that is lacking in today's reasoning that may be present in the future. For these reasons, there stands no man who can claim truth with certainty.

Right. No disagreement. Now how is that relevant to the claim in question that we aren't using the same theorems and systems?

So you fail to see how such a "perfect" and even "axiomatic" thing as Euclidean geometry can be replaced with a more dynamical, yet more complete, more accurate system? Human logic is the thing that is fallible -- including all that it involves -- and mathematics as we know it is based upon human logic. To say that mathematics as set forth through human logic is "true forever," or even that "we use the same systems as the ancients today" -- again, I say outright, both claims are demonstrably false. That

These are disconnected issues which you are combining. "True forever" and using the same systems are distinct questions. Separate the questions and focus on the system issue. We've got no disagreement about the first one.

→ More replies (5)
→ More replies (1)

15

u/spockatron Oct 31 '13

No. The proof that there are infinitely many primes goes basically like this.

Suppose there were some largest prime. That means you could list every prime in some set P = {p1, p2, p3...pn}. If you were to multiply every number in that set together, and add 1 to that, it wouldn't be divisible by any of the numbers in the list. That would make it prime, and not on the list, which is a contradiction. Therefore, there are infinitely many primes.

8

u/adamsolomon Theoretical Cosmology | General Relativity Oct 31 '13

This proof is half correct. The all-the-primes-multiplied-plus-one number isn't necessarily prime. But if it isn't, then it has to have some prime factor which isn't on the list (because all numbers have prime factors, but the plus-one number can't have any factors in the list). So either the plus-one number is prime or its factors are, and in either case you have at least one prime which isn't on the list. QED :)

4

u/spockatron Oct 31 '13

by definition (of the +1 number), all of its factors are prime- and those factors are every prime. if it has no prime factorization, it is necessarily prime. the proof is correct.

0

u/[deleted] Nov 01 '13

[deleted] — view deleted comment

3

u/BundleGerbe Topology | Category Theory Nov 01 '13

Spockatron is only saying 2 * 3 * 5 * 7 - 1 is prime under the hypothesis that (2,3,5,7) is an exhaustive list of prime numbers. In other words IF (2,3,5,7) is an exhaustive list of primes, THEN 2 * 3 * 5 * 7 - 1 is prime, because it is not divisible by any prime number. "False => false" is true. It is no criticism of a proof by contradiction that it says something false, as long as it does in fact follow from hypothesis.

Here is a similar flawed proof (not proceeding by contradiction) that really does make the error you identify: suppose we have some primes {p1, p2, p3, ... ,pn}. Then p1 * p2 * ... * pn + 1 is a prime which is not on the list. Thus no finite list exhausts the primes.

To make this valid, we can make the correction you suggest: suppose we have some primes {p1, p2, p3, ... ,pn}. Then the prime factors of p1 * p2 * ... * pn + 1 (of which there is at least one) are not on the list. Thus no finite list exhausts the primes.

3

u/diazona Particle Phenomenology | QCD | Computational Physics Nov 01 '13

Alternatively, you could do it like this: if there were a largest prime number, p, then p!+1 can't be a multiple of any integer less than or equal to p, thus demonstrating the existence of a prime number larger than p. I think that works....

2

u/hibblethwing Oct 31 '13

You are arguing about what happens after the contradiction is derived. The heart of the proof is that every number larger than 1 is divisible by at least one prime. Suppose the primes are finite (i.e. have a largest member). Then we can construct a number which is not divisible by any prime, contradiction. QED.

You two start rambling about whether this impossible number is prime or not. Which is completely irrelevant.

1

u/BundleGerbe Topology | Category Theory Oct 31 '13 edited Oct 31 '13

I don't see a logical problem with the proof, though I prefer your version for clarity. Spockatron is implicitly using:

"Lemma: either a number is prime, or it is divisible by a prime"

Having shown (under the hypothesis) that P = p1 * p2 * ... * pn +1 isn't divisible by any prime, s/he concludes that P is prime, which is a contradiction as its not on the list. This is slightly roundabout but valid.

This could be simplified to the following proof:

Lemma: every integer greater than 1 is divisible by some prime (possibly itself). (going to take this as given)

Proof of Euclid's Theorem: Suppose p1, p2,... pn is an exhaustive list of primes. Then P = p1 * p2 * ... * pn +1 is not divisible by any prime, since it is not divisible by any of p1,p2,...,pn. This contradicts the lemma.

2

u/[deleted] Oct 31 '13

Counterexample: I choose the set of primes {2, 7}. 2 * 7 = 14; 15 is not prime.

But 15 is coprime with 2 and 7, so you have proven that {2, 7} is not an exhaustive set of primes.

-1

u/Villanelle84 Oct 31 '13

That's an excessive simplification of Euclid's Theorem; it misses some important subtleties. Just take a look at the wikipedia page.

4

u/3058250 Oct 31 '13

The only thing missing is why off by one becomes a prime. It's not excessively simplified.

-1

u/adamsolomon Theoretical Cosmology | General Relativity Oct 31 '13

The off-by-one number isn't necessarily prime, though. The step that's missing is that if that number isn't prime, then it has a prime factor which isn't on the list.

7

u/bluexavi Oct 31 '13

You're not proving that off by one is prime. You're proving that the list of primes is not comprehensive.

1

u/3058250 Oct 31 '13 edited Oct 31 '13

Ah. I'll explain it.

So, we get this number G. G is the product of every prime up to our maximum prime (p1 * p2 * p3 * .... * pk * ... * pn [the largest prime]). We can write G by taking any one of these primes and multiplying it by the product of the rest of the primes... more easily: G = pk * (G/pk). G/pk will be an integer, since it we can easily see it is a factor of G.

Ok, so, let (G/pk) = T. so, G = pk * T. Seeing this, we know that pk can never be multiplied by an integer to be G - 1 or G + 1. The closest we can get is G +/- pk. Since we could have used any prime for pk, we know that there is no pk which may be a factor of (G +/- 1). Since no pk is a factor of (G +/- 1), then (G +/- 1) is "coprime" relative to the list (can't be created by the list of numbers). Which means that our number would be prime (because the list contains all the primes). But it's not on the list, so it is a contradiction.

Sorry if it's a bit condeluded. I'm not use to writing out my proofs like this xD.

Edit: <removed>

Edit2: edit was incorrect.

1

u/[deleted] Oct 31 '13

[removed] — view removed comment

2

u/[deleted] Oct 31 '13

it wouldn't be divisible by any of the numbers... that would make it prime

This is the simplification I think. The theorem states that since any natural number is divisible by a prime, and that N is not divisible by the primes in set P, there exists some prime not in set P. That prime is not necessarily N itself.

2

u/sjpkcb Oct 31 '13

Spockatron's proof doesn't overlook anything; it just takes a fairly obvious lemma for granted (one which most people wouldn't demand proof for).

The wikipedia article goes off on a tangent about the manner in which Euclid structured his proof, but that's not relevant to our purposes.

1

u/adamsolomon Theoretical Cosmology | General Relativity Oct 31 '13

Just answered that elsewhere.

89

u/Astrokiwi Numerical Simulations | Galaxies | ISM Oct 31 '13

There is definitely no largest prime number. This is a mathematical theorem, which means it has been completely proved without any doubt.

However, actually calculating prime numbers can be quite tricky. So there is such a thing as the "largest known prime". We know for sure there are prime numbers above that number, but this could be the largest prime number that we currently have an exact number for.

8

u/[deleted] Nov 01 '13

As of October 2013, the largest known prime number is 257,885,161 − 1, a number with 17,425,170 digits.

From Wiki, in case anyone was curious.

7

u/pigeon768 Oct 31 '13

My teacher told me that researchers found 'the largest prime number', and that it's as big as a book.

Largest prime number or largest known prime number? Every few years the Great Internet Mersenne Prime Search turns up the newest largest prime number. The last time this happened was last January. It was proved that 257,885,161 - 1 is prime. That number could be fit in a book, but it would be very, very large.

Perhaps your teacher misinterpreted that to mean that the there existed no number larger than that, or perhaps you misunderstood your teacher.

6

u/BundleGerbe Topology | Category Theory Oct 31 '13

There are an infinite number of prime numbers, thus there can be no biggest one. This was first proven by Euclid, and you can read about his proof (and some other less elementary proofs) on this wikipedia page: Euclid's Theorem.

2

u/Xelopheris Nov 01 '13

What you're really asking is if there is a finite number of primes, and no, there is not.

Let's assume the opposite for a second. We have a list of primes, {P1, P2, P3, P4, ..., PN-1, PN}. Now we multiply all these primes and get a new number, Q = P1 * P2 * P3 * ... * PN. Now let's take Q+1 and try and factor it.

Unfortunately, you can't factor P1P2P3*...*PN+1. This means that Q+1 is a new prime, and that original list of primes is incomplete.

0

u/[deleted] Nov 01 '13

[deleted] — view deleted comment

1

u/Xelopheris Nov 01 '13

Then I can just contradict your list that it doesn't contain the number 2, then we work from there.

1

u/_NW_ Nov 01 '13

The Fundamental Theorem of Arithmetic says that every integer greater than 1 either is prime itself or is the product of prime numbers. 3*5+1=16 can't be factored into a product of {3,5}(all of the primes). By FTA, it must be prime.

2

u/sjpkcb Oct 31 '13

The great thing about this question and its answer ("no, there's an infinite number of primes") is that it is simultaneously Real Serious Math and yet also extremely simple to prove. It requires no advanced techniques, nor even pencil and paper — you can derive the result for your math-skeptical friends without even getting up from the dinner table.

See spockatron's response below for an example of how easy it is. (And just say 'list' instead of 'set' if you're afraid that word will scare off your friends.)

4

u/f4hy Quantum Field Theory Oct 31 '13

There are infinatly many primes. This is known as Euclid's Theorem

0

u/[deleted] Oct 31 '13

[deleted] — view deleted comment

1

u/protocol_7 Nov 01 '13

That's incorrect. There are arbitrarily large gaps between prime numbers — in fact, for any integer n ≥ 2, all of the numbers n! + 2, n! + 3, ..., n! + n are composite (not prime), so we have a string of (n – 1) consecutive composite numbers.

The recently proved result showed something else: that there is a constant H such that, if N is any integer, there exist primes p, q ≥ N such that |p – q| ≤ H. In other words, there are arbitrarily large pairs of primes that differ by less than H.

Zhang's original paper gave a value of H = 70000000. This has been improved to H = 4680 by a collaborative Polymath project; a major improvement that would result in H = 628 was announced in a talk about a week ago, but has yet to be verified.

The twin prime conjecture corresponds to H = 2, meaning that there are infinitely many pairs of primes that differ by exactly 2. This result is probably still far out of reach; Zhang's methods don't work for such small values, and there are some technical obstructions to known methods.

Here's a good article explaining Zhang's result. (Note, however, that it was written prior to most of the improvements in the bound.)