![]() |
![]() |
#1 |
Aug 2016
2×3 Posts |
![]()
I'm not a mathematician, but I just saw a Tweet by fermatslibrary stating that
every prime is next to a multiple of 6. Isn't this a way faster way of figuring out whether a number is prime or not, instead of attacking it with lengthy tests? https://primes.utm.edu/notes/faq/six.html |
![]() |
![]() |
![]() |
#2 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
22·7·132 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#3 | |
Jan 2021
California
23×5×11 Posts |
![]()
Clearly
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
"99(4^34019)99 palind"
Nov 2016
(P^81993)SZ base 36
72×73 Posts |
![]()
For any positive integer n, all primes not dividing n are coprime to n, and the remainder of them to n must be in the reduced residue system mod n, e.g. for n=15, the reduced residue system is {1, 2, 4, 7, 8, 11, 13, 14}, and for your case of n=6, the reduced residue system is {1, 5}, thus all primes p not dividing 6 must == 1 or 5 mod 6, and if p == 1 mod 6, then p-1 is multiple of 6, if p == 5 mod 6, then p+1 is multiple of 6, thus all primes p not dividing 6 (i.e. other than 2 and 3) are next to multiple of 6
|
![]() |
![]() |
![]() |
#5 |
Aug 2016
2×3 Posts |
![]()
Thanks for being so polite.
And you just re-iterated my statement, however I was looking for an answer to the question whether it would be easier to test first if a given assignment is indeed of the form 6n+1 or 6n-1, instead of brutally attacking it with a lengthy test. Assuming that checking the 6n+1 or 6n-1 is less brutal off course. |
![]() |
![]() |
![]() |
#6 | |
"Καλός"
May 2018
2×52×7 Posts |
![]() Quote:
However, as stated by drkirkby in another thread, within the known sample size there are "more twin primes below Mersenne exponents than above Mersenne exponents", see https://mersenneforum.org/showthread.php?t=26812 and OEIS346645. |
|
![]() |
![]() |
![]() |
#7 | |
"Curtis"
Feb 2005
Riverside, CA
538910 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
"Καλός"
May 2018
15E16 Posts |
![]() Quote:
because 2p - 1 = (2 - 1)(2p-1 + 2p-2 + ... + 22 + 21 + 20) = ((3-1)p-1 + (3-1)p-2) + ... + ((3-1)2 + (3-1)1) + 1 and after applying the binomial theorem (see https://en.wikipedia.org/wiki/Binomial_theorem) the terms (1p-1 - 1p-2) + ... + (12 - 11) within the parentheses cancel each other. |
|
![]() |
![]() |
![]() |
#9 |
Jan 2021
California
23×5×11 Posts |
![]()
Well, if you are going to specifically talk about Mersenne primes, the candidates can't have any "small" factors (like 3) because all factors of 2^p-1 are of the form 2kp+1, so when looking at Mersenne candidates with exponents over 100 million (which is the low end of the search right now), the smallest possible factor will be over 200 million.
But there are lots of other types of primes that people are looking for, that's just the main project. |
![]() |
![]() |
![]() |
#10 | |
"Tucker Kao"
Jan 2020
Head Base M168202123
2F016 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
"Curtis"
Feb 2005
Riverside, CA
17·317 Posts |
![]() Quote:
Or, please tell us how the last digit allows you to identify whether a number is divisible by 3. Here are numbers not divisible by 3: 10, 11, 22, 23, 34, 35, 46, 47, 58, 59. There's all ten last digits. So, explain. Last fiddled with by VBCurtis on 2022-03-13 at 03:06 |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I calculate chances of finding a prime, while testing multiple exponents? | drkirkby | Math | 4 | 2021-04-13 12:58 |
Linux and multiple GPU | bgbeuning | GPU Computing | 52 | 2016-06-09 05:26 |
Using multiple PCs | numbercruncher | Information & Answers | 18 | 2014-04-17 00:17 |
Are multiple gpu's necessary for CUDA... | WraithX | GPU Computing | 16 | 2012-03-22 10:44 |
Multiple systems/multiple CPUs. Best configuration? | BillW | Software | 1 | 2003-01-21 20:11 |