Want to identify that a number is prime

  • Context: High School 
  • Thread starter Thread starter i.mehrzad
  • Start date Start date
  • Tags Tags
    Prime
Click For Summary

Discussion Overview

The discussion centers around identifying prime numbers, exploring various methods and proofs related to primality and the infinitude of primes. Participants examine specific formulas, such as 6n±1, and discuss the implications of these forms on determining primality, as well as the relationship between prime numbers and divergent series.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants propose that most prime numbers can be expressed in the form 6n±1, questioning whether this is a coincidence or has a proof.
  • Others clarify that while numbers can be expressed as 6n+m, only m=1 or m=5 can yield primes, ruling out other forms based on divisibility.
  • One participant points out that ruling out factors like 2 and 3 does not guarantee a number is prime, using 35 as a counterexample.
  • Another participant argues that if a definitive method existed for identifying primes, it would contradict the uniqueness of Euclid's proof of the infinitude of primes.
  • Some express skepticism about the existence of a general method for verifying primality, suggesting that constructing primes might not be feasible.
  • One participant describes a method for testing primality by checking divisibility against numbers less than the square root of p, referencing the Sieve of Eratosthenes as a historical method.
  • Several participants discuss proofs of the infinitude of primes, with one mentioning Euler's proof involving the divergence of the series of reciprocals of primes.
  • There is a debate about the logic behind using divergent series to prove infinitude, with participants attempting to clarify the implications of finite versus infinite sets.

Areas of Agreement / Disagreement

Participants express a range of views, with some agreeing on the forms of primes and methods for testing primality, while others contest the effectiveness of these methods and the implications for proofs of infinitude. The discussion remains unresolved regarding the existence of a definitive method for identifying prime numbers.

Contextual Notes

Limitations include the dependence on specific definitions of primality and the assumptions made about the forms of numbers. The discussion also highlights unresolved mathematical steps in the logic surrounding divergent series and their implications for the infinitude of primes.

i.mehrzad
Messages
84
Reaction score
0
Well i read this somewhere that most prime numbers will give a whole number when equated with the formulae 6n+/-1(plus or minus)
Is there any proof for this or is it just a coincidence.
 
Mathematics news on Phys.org
Well you are saying that most prime numbers are of the form 6n+1 or 6n+5 for some n.

Well, note that all numbers can be written as 6n+m for some n, and some m between 0 and 5. So all we are claiming is that m cannot be any number other than 1 or 5. This can be seen simply by checking cases.

p=6n+0 would imply p is a multiple of 6, so not prime
p=6n+2=2(3n+1) implies p is even, so not prime unless p is 2
p=6n+3=3(2n+1) implies p is a multiple of 3, and so prime only when p=3.
p=6n+4=2(3n+2) implies p is even.
 
On from DeadWolfe's post, that doesn't end up telling you that the number is actually prime though. It just rules out that 2 and 3 are not factors, which indeed rules out a lot of numbers, but isn't actually very effective. ie 35 = 6*(5) + 5. However 35 is not prime, 5*7.
 
There can't be any known way for the simple reason that if there was one, Euclid's proof of the infinity of prime numbers wouldn't be the only one, as it is now.
 
Last edited:
Werg22 said:
There can't be any known way for the simple reason that if there was one, Euclid's proof of the infinity of prime numbers wouldn't be the only one, as it is now.

What are you saying? There is no way to tell whether a number is prime? Obviously there are methods (we can all think of at least one)

Furthermore, I don't understand how this would relate to proofs of the infinitude of primes, but there are many known proofs of this fact.
 
Are there? Admittedly I was venturing myself a bit so the argument probably doesn't hold. Though, I am skeptical whether that there is a general way to verify that a number is prime. If there was, it would be simple to construct prime numbers, something that I doubt is possible.
 
Last edited:
Of course there is: to test p is prime, check all the numbers less than sqrt(p) and make sure none of them divide p. Of course, this does indeed yield a method for constructing primes, called the sieve Eratosthenes, and it has been known for thousands of years. Of course it isn't very effective...
 
Sieve of Eratosthenes you say? I was unaware of that, I'll look into it.
 
Not to mention I can think of a few proofs for the infintitude of the primes, my favorite being Euler's which shows [tex]\sum \frac{1}{p}[/tex] diverges, which of course it can't unless there are infinite p.
 
  • #10
Gib Z said:
Not to mention I can think of a few proofs for the infintitude of the primes, my favorite being Euler's which shows [tex]\sum \frac{1}{p}[/tex] diverges, which of course it can't unless there are infinite p.

Since that's from Euler, it's undoubtedly correct, but I don't follow the logic. If p = {1, 2, 3, ... 2^1000} rather than primes, that would also diverge but it has an explicit upper bound. How do you get from a diverging sum to proof of infinitude?
 
  • #11
ktoz said:
Since that's from Euler, it's undoubtedly correct, but I don't follow the logic. If p = {1, 2, 3, ... 2^1000} rather than primes, that would also diverge but it has an explicit upper bound. How do you get from a diverging sum to proof of infinitude?

If p belongs to any set of numbers let's call it P, it is fairly obvious that if P is finite then the sum of all 1/p converges because this is a finite sum of finite numbers. This statement is equivalent to( the contrapositive of) the statement that if the sum of all 1/p diverges then P is infinite.
 
Last edited:
  • #12
Umm if they example serious you gave where p = 1,2,3,4,5,... then it diverges if that sequence has an infinite number of terms. However if it has a finite number implied by your 2^1000, then it actually converges.
 
  • #13
Gib Z said:
Umm if they example serious you gave where p = 1,2,3,4,5,... then it diverges if that sequence has an infinite number of terms. However if it has a finite number implied by your 2^1000, then it actually converges.

I guess I was thinking it diverges because

[tex]\frac{1}{1} + \frac{1}{2} + \frac{1}{3} < \frac{1}{1} + \frac{1}{2} + \frac{1}{3} + \frac{1}{4}[/tex]

and that adding each subsequent 1/n would produce a greater sum than the last, thus divergence. That's not what you mean by divergence though I suspect.
 
  • #14
d_leet said:
If p belongs to any set of numbers let's call it P, it is fairly obvious that if P is finite then the sum of all 1/p converges because this is a finite sum of finite numbers. This statement is equivalent to( the contrapositive of) the statement that if the sum of all 1/p diverges then P is infinite.

OK. That makes sense. Thanks
 
  • #15
ktoz said:
Since that's from Euler, it's undoubtedly correct, but I don't follow the logic. If p = {1, 2, 3, ... 2^1000} rather than primes, that would also diverge but it has an explicit upper bound. How do you get from a diverging sum to proof of infinitude?

Remember that a series is said to converge if the limit of the sequence of it's partial sums converges. In the case:

[tex]\sum_{a\in A}\frac{1}{a}[/tex]

Where A is finite (i.e., |A| = some natural number n), the series of partial sums converges exactly to nth partial sum. Intuitively, what could the (n+1)th partial sum possibly be? If it was anything other than the nth partial sum, it would seem to indicate that |A|> n, which would violate our hypothesis. Since A is finite implies this series is convergent, then the contrapositive must also be true--if this series is divergent, then A is infinite.

Of course this doesn't actually prove that this series is divergent when A is the set of prime numbers. Just that if it is divergent, then there must be infinite number of prime numbers.

Edit: Looks like I was beaten to the punch.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
69
Views
10K
  • · Replies 35 ·
2
Replies
35
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 36 ·
2
Replies
36
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 24 ·
Replies
24
Views
3K