Is the Concept of Prime Numbers Finite or Infinite?

  • Context: High School 
  • Thread starter Thread starter JasonRox
  • Start date Start date
  • Tags Tags
    Finite Prime
Click For Summary
SUMMARY

The discussion confirms that there are infinitely many prime numbers, as established by a simple proof involving the product of a finite set of primes. The proof shows that if you assume a finite set of primes, you can construct a number that cannot be divided by any of the primes in that set, thus proving that the set cannot be complete. Tools such as Eratosthenes' Sieve are mentioned for generating primes, although no formula currently exists for directly finding the nth prime. The conversation also touches on the complexity of factorization and the existence of formulas that generate primes, albeit with limited utility.

PREREQUISITES
  • Understanding of prime numbers and their properties
  • Familiarity with mathematical proofs, particularly Euclid's proof of the infinitude of primes
  • Knowledge of Eratosthenes' Sieve for generating prime numbers
  • Basic understanding of number theory concepts such as factorization
NEXT STEPS
  • Study Euclid's proof of the infinitude of primes in detail
  • Learn about advanced prime generation algorithms beyond Eratosthenes' Sieve
  • Explore the implications of the Prime Number Theorem on the distribution of primes
  • Investigate existing formulas for generating primes, such as those involving Mill's constant
USEFUL FOR

Mathematicians, educators, students of number theory, and anyone interested in the properties and generation of prime numbers.

JasonRox
Homework Helper
Gold Member
Messages
2,381
Reaction score
4
So is it?

Something I have been thinking about lately.
 
Mathematics news on Phys.org
Your question doesn't seem to make sense.

Do you mean "Is there a finite number of prime numbers?"

If so, the answer is no. It is easy to prove that there are infinitely many primes.
 
There is no formula for finding primes yet? Right?
 
There are ways of checking if a given number is prime or not. There is no known formula which generates the nth prime from the number n, if that's what you mean.
 
JasonRox said:
There is no formula for finding primes yet? Right?

Eratosthenes' Sieve is a process that will give you primes as large as you please. The only requirement is lots of time and patience! :-)
 
What about factorisation? Does any formula exist which can factorise any numbers into primes, as large as we please? The last time I heard, the answer was no.
 
Yes there is a way of doing it, but it takes far too long to do.
 
There are formulas that explicitly give the nth prime, none of them are that useful though.
 
Oops. My mistake, jcsd. I think you're right.
 
  • #10
James R said:
Your question doesn't seem to make sense.

Do you mean "Is there a finite number of prime numbers?"

If so, the answer is no. It is easy to prove that there are infinitely many primes.
It´s actually so simple that I can post it here:
(1) Assume a nonempty finite set P of primes.
(2) Let X be the product of all these primes.
(3) X+1 does not divide by any element in P so P cannot be the set of all primes (as any number except One divides by at least one prime).
As this is true for all nonempty finite sets P the number of primes must be infinite or zero (hint: It isn´t zero :-p)

EDIT: Thank´s to Shmoe and StatusX for helping me out with my flawed and less elegant 1st approach.


jcsd said:
There are formulas that explicitly give the nth prime, none of them are that useful though.
Formulas in the sense of "prime(n) = ... " or algorithms to determine it (the latter is trivial)? What do you mean by saying they are not usefull? Can you give links or names?
 
Last edited:
  • #11
Technically, the third step should be "none of the primes in the list divide it, so your list could not have been complete." Your third step is not self-evident.
 
  • #12
Atheist said:
Formulas in the sense of "prime(n) = ... " or algorithms to determine it (the latter is trivial)? What do you mean by saying they are not usefull? Can you give links or names?


Here's one:

f(n) = \lfloor \theta^{3^n}\rfloor

where \theta is Mill's constant.

Infact Mathworld has an entry on such formulas:

http://mathworld.wolfram.com/PrimeFormulas.html
 
  • #13
Bad example as it doesn´t give the n-th prime but the link is interesting, thanks.

@StatusX: I don´t really see a problem with my post although I have to admit that I took that out of my head and didn´t bother to look up a more elegant proof somewhere. I will consider rephrasing what I wrote.
 
  • #14
Atheist said:
@StatusX: I don´t really see a problem with my post although I have to admit that I took that out of my head and didn´t bother to look up a more elegant proof somewhere. I will consider rephrasing what I wrote.

Your conclusion in step 3 is false. For example if our list of primes is 2,3,5,7,11, 13, then X+1=3031=59*509, in other words it has divisors other than 1 and X+1. The consequence of how X is made from our list of primes is that X+1 has a prime divisor that is not on our list, and hence we get another prime.
 
  • #15
>> in other words it has divisors other than 1 and X+1

Not if my list of primes I start with is complete which was the assumtpion I started from. However, I realize how and why my post was misleading and/or improperly written.

Thanks for showing where the problem lied, I´ve edited the thing in a way StatusX proposed.
 
  • #16
Atheist said:
>> in other words it has divisors other than 1 and X+1

Not if my list of primes I start with is complete which was the assumtpion I started from. However, I realize how and why my post was misleading and/or improperly written.

No, if you start with assuming a complete list of primes you still can't conclude that X+1 has no divisors other than 1 or itself, only that none of your primes divide it (there is a distinction here). Add this to an earlier result that every integer has a prime divisor and you have a contradiction (this prime divisor may or may not be X+1).
 
  • #17
<br /> (K+2){1-[WZ+H+J-Q]^2-[(GK+2G+K+1)(H+J)+H-Z]^2-[2N+P+Q+Z-E]^2<br />
-[16(K+1)^3(K+2)(N+1)^2+1-F^2]^2
-[E^3(E+2)(A+1)^2+1-O^2]^2
-[(A^2-1)Y^2+1-X^2]^2
-[16R^2Y^4(A^2-1)+1-U^2]^2
-[((A+U^2(U^2-A))^2-1) x (N+4DY)^2+1-(X+CU)^2]^2
-[N+L+V-Y]^2
-[(A^2-1)L^2+1-M^2]^2
-[AI+K+1-L-I]^2
-[P+L(A-N-1)+B(2AN+2A-N^2-2N-2)-M]^2
-[Q+Y(A-P-1)+S(2AP+2A-P^2-2P-2)-X]^2
-[Z+PL(A-P)+T(2AP-P^2-1)-PM]^2}

Those are all minus signs on the left.

I guess the way it works is you plug 26 numbers in for each variable, A-Z, and after you plug in all the (infinitely many) combinations it spits out all of the primes. Some combinations don't work and produce negative numbers. Any positive number it produces will be a prime.
 
  • #18
shmoe said:
Your conclusion in step 3 is false. For example if our list of primes is 2,3,5,7,11, 13, then X+1=3031=59*509, in other words it has divisors other than 1 and X+1. The consequence of how X is made from our list of primes is that X+1 has a prime divisor that is not on our list, and hence we get another prime.

2*3*5*7*11*13 + 1 = 30 031

Proof:
All variables are whole numbers here
x*y mod x = 0
y*x mod x = 0
y=z*t
x*z*t mod x = 0
X times any number mod x is 0 thus X times the product of any numbers mod X is 0 thus X times the product of any numbers plus 1 mod x = 1 if X is greater than 1
x*z*t + 1 mod x = 1
x*z*t + 1 mod z = 1
x*z*t + 1 mod t = 1

You can say x is 2, z is 3, and t is 5 if you like.
 
  • #19
Alkatran said:
2*3*5*7*11*13 + 1 = 30 031

Yes, I typo'd a zero into oblivion, thanks for the correction.


Alkatran said:
Proof:
All variables are whole numbers here
x*y mod x = 0
y*x mod x = 0
y=z*t
x*z*t mod x = 0
X times any number mod x is 0 thus X times the product of any numbers mod X is 0 thus X times the product of any numbers plus 1 mod x = 1 if X is greater than 1
x*z*t + 1 mod x = 1
x*z*t + 1 mod z = 1
x*z*t + 1 mod t = 1

You can say x is 2, z is 3, and t is 5 if you like.

I don't see how this shows you get 30031 though. It will only show 2*3*5*7*11*13+1 is congruent to 1 mod 2, 3, 5, 7, 11, and 13. There are infinitely many numbers that satisfy this. (even better-there are infinitely many primes which satisfy this)
 
  • #20
shmoe said:
Yes, I typo'd a zero into oblivion, thanks for the correction.




I don't see how this shows you get 30031 though. It will only show 2*3*5*7*11*13+1 is congruent to 1 mod 2, 3, 5, 7, 11, and 13. There are infinitely many numbers that satisfy this. (even better-there are infinitely many primes which satisfy this)

The proof shows that
(2*3*5*7*11*13 + 1) mod (2, 3, 5, 7, 11, or 13) = 1
IE that it isn't divisible by any of them.

I'll need to think of how to show it's not divisible by any others...
 
  • #21
I'll need to think of how to show it's not divisible by any others...

Good luck, because as shmoe said, it's divisible by 59 and 509.
 
  • #22
Alkatran said:
The proof shows that
(2*3*5*7*11*13 + 1) mod (2, 3, 5, 7, 11, or 13) = 1
IE that it isn't divisible by any of them.

I see. From the format of your post it looked like you were trying to prove that 2*3*5*7*11*13+1=30,031. I wasn't disagreeing that X+1 wouldn't have any prime factors from the original list (I said as much) so it didn't cross my mind that you were trying to prove this.

Alkatran said:
I'll need to think of how to show it's not divisible by any others...

That was the point of my example, you can't show X+1 has only the trivial divisors since it's not in general true. The X+1 that you get is not necessarily prime. Though I botched a zero, the 59*509 factorization is still correct for that list of primes.
 
  • #23
Well then think of it this way:

Since the number does not have any factors in the primes we counted (up to 13), we know that it has no factors which have factors in the known primes.

MEANING if it has a factor, that factor which is prime which is above our known primes! (if that factor is not prime, it means it has a factor which is prime or that factor has a fac..)

x*y*z + 1 mod (x,y or z) = 1 so x,y and z are not factors
thus if x*y*z + 1 has any factors, this factor will not have factors x,y or z
thus we must reach some factor which has no factors, or a prime
 
Last edited:
  • #24
Think of a prime number as being a gap between the product of a number of primes (composite numbers). Because there is an infinitie number of composites, there will be an infinite number of gaps and thus an infinite number of primes.
 
  • #25
You're not a mathematician, right? Presuming there to be an infinite number of "gaps" since there are an infinite number of composites? Short of proving that there are an infinite number of gaps (ie primes) I don't see why anyone should accept that hypothesis.
 
  • #26
I think that Greg's just saying there is an infinite number of numbers. Saying that you'll run out of primes is like saying that you'll run out of multiples of two, or multiples of seven. You won't. Although the possiblity of coming across a prime gets smaller and smaller the higher up you go, there is still the possibility that a prime is there, you just have to look for it. I've developed a method of finding primes much like the sieve, but it only looks at two numbers at a time to determine if they're prime and uses the configuration of factors much like the sieve. My point is that no matter how many times I run through the numbers, there is always a "gap" somewhere down the line. The reason it becomes less likely to find a "gap" is because the larger the number the better a chance it has of having prime factors other then itself and one. So, I agree with Greg. I believe that primes are just as infinite as numbers themselves because just as multiples of two and multiples of seven are in the very structure of our number system, so are primes.
 
  • #27
ZeAsYn51 said:
Saying that you'll run out of primes is like saying that you'll run out of multiples of two, or multiples of seven.

I disagree with this. Running out of multiples of two means you would have only finitely many numbers. Running out of primes means no such thing. I wouldn't say these two assumptions have similar flavours at all.

ZeAsYn51 said:
I believe that primes are just as infinite as numbers themselves because just as multiples of two and multiples of seven are in the very structure of our number system, so are primes.

They are "just as infinite" in the sense of sets-there is a bijection between primes and naturals, but in a very real sense there are less primes than naturals, and less primes than there are mltiples of two. Primes 'thin out' as you get higher, multiples of two don't (this can be made very precise-e.g. the prime number theorem).
 
  • #28
Well, tell me exactly how any "set" (multiples of two,primes, etc.) of numbers is less than infinite if numbers themselves are infinite? That was my point.
 
  • #29
ZeAsYn51 said:
Well, tell me exactly how any "set" (multiples of two,primes, etc.) of numbers is less than infinite if numbers themselves are infinite? That was my point.

The set of all even primes.
 
  • #30
ZeAsYn51 said:
Well, tell me exactly how any "set" (multiples of two,primes, etc.) of numbers is less than infinite if numbers themselves are infinite? That was my point.

Let pi(x) be the number of primes less than or equal to x. The pi(x)~x/log(x), so pi(x)/x~1/log(x) and pi(x)/x->0 as x->infinity. Let two(x)=number of multiples of 2 less than or equal to x. Then two(x)/x->1/2 as x->infinity. In this sense there are less primes than multiples of two.

You'll notice I used the inherent order on the naturals here. Like I said, they are identitcal in size in the set theoretic sense.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 35 ·
2
Replies
35
Views
5K
  • · Replies 3 ·
Replies
3
Views
1K