Is It Proved That All Primes End With 1,3,7,9?

  • Context: High School 
  • Thread starter Thread starter wellorderingp
  • Start date Start date
  • Tags Tags
    Primes
Click For Summary
SUMMARY

All prime numbers, with the exceptions of 2 and 5, end with the digits 1, 3, 7, or 9. This conclusion is derived from the fact that even numbers are divisible by 2 and numbers ending in 5 are multiples of 5. Consequently, these rules eliminate over 60% of natural numbers from being prime, allowing for more efficient identification of potential primes. The discussion also references Dirichlet's theorem on arithmetic progressions as a related concept.

PREREQUISITES
  • Understanding of prime numbers and their properties
  • Basic knowledge of number theory
  • Familiarity with divisibility rules
  • Awareness of Dirichlet's theorem on arithmetic progressions
NEXT STEPS
  • Study the properties of prime numbers in number theory
  • Learn about Dirichlet's theorem on arithmetic progressions
  • Explore algorithms for prime number generation
  • Investigate the distribution of prime numbers and their endings
USEFUL FOR

Mathematicians, number theorists, computer scientists, and anyone interested in prime number identification and properties.

wellorderingp
Messages
23
Reaction score
1
So it was my observation that all the prime numbers I saw ended with digits 1,3,7,9.Is this true for all primes? Is it proved?
 
Mathematics news on Phys.org
With an exception to 5
 
Consider: With the exception of 2, no primes can be even, as if they are even, then they are divisible by 2.

Therefore, all primes must end in 1, 3, 5, 7, or 9.

Consider: With the exception of 5, no primes can end in 5, as if they do so, then they are a multiple of 5.

Therefore, all primes must end in 1, 3, 7, or 9.

So... yes.

If you need a proof of either of the considered statements, I'm sure it wouldn't be too difficult.
 
  • Like
Likes   Reactions: WWGD
bah, beat me to it. :)
 
Yeah that was pretty simple :) thanks anyways
 
  • Like
Likes   Reactions: WWGD
Simple, maybe, but it's still helpful for prime identification. Considering that just those two little rules invalidate over 60% of all natural numbers from being prime, it allows you (or a computer) to focus more easily upon the other 40%.
 
dkotschessaa said:
You might find this interesting. This is more numerical-search than proofy stuff:http://korn19.ch/coding/primes/ending.php

Interesting. This means to me that there are about as many primes that end in 3, as there are primes that end in 1 (or 7 or 9). I wonder if this has been proven.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 58 ·
2
Replies
58
Views
9K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K