![]() |
|
![]() |
|
Thread Tools |
![]() |
#1 | |
Mar 2021
1011002 Posts |
![]()
I noticed this and wondered if anyone has ever went on this path to find a large prime to put in the database. I haven't bought my rig yet to start working on the project for mersennes, but will soon and was just curious about this one as it seems fun to try maybe. Probably not enough cpu power for the is_prime tests, heh.
Quote:
Last fiddled with by LarsNet on 2021-09-18 at 23:32 |
|
![]() |
![]() |
![]() |
#2 |
Mar 2021
22·11 Posts |
![]()
Since i posted something not so useful,i thought i'd share something interesting ( nothing new, just something old and interesting):
If you run any mersenne number in the following equation, you will always get a bin of repeating 1's and 0's. Code:
In [2521]: bin((2**107-1)*((2**107-1)//3)-1) Out[2521]: '0b101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010100110101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101' Code:
In [2566]: p2ecm(8776024305713098891493168973639202693241257950045759271192581461) Out[2566]: [643, 84115747449047881488635567801, 162259276829213363391578010288127] 162259276829213363391578010288127//3+1 = 643 * 84115747449047881488635567801 In [2567]: bin(8776024305713098891493168973639202693241257950045759271192581461) Out[2567]: '0b101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101' Ok HERE we go: Code:
In [1615]: bin((2**107-1)*((2**107-1)//3+1)) Out[1615]: '0b101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101' meaning map 1 to 5 through 9 and 0 to 0 through 4, use this equation: Code:
a = 2**61-1 # 2305843009213693951 z = a + a z = int(str(z),16) h = (int(str(a), 16) + int(str(a), 16)) print(hex((z-h)//6) 2305843009213693951 0001100001000110110 Last fiddled with by retina on 2021-09-19 at 05:36 Reason: Long lines are long |
![]() |
![]() |
![]() |
#3 |
"Alexander"
Nov 2008
The Alamo City
3C316 Posts |
![]()
Can a mod please get some [CODE] tags in that post? It overflowed my screen width, and I'm sure I wasn't the only one.
|
![]() |
![]() |
![]() |
#4 | |
Romulan Interpreter
"name field"
Jun 2011
Thailand
240558 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 | |
Feb 2017
Nowhere
26·32·11 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Mar 2021
22×11 Posts |
![]()
Yes, i'm a newbie, but i love what i've discovered and have a love for prime numbers and would like to help with the project if any of you have any ideas on what i can buy to contribute (while not much, but enough i hope (5 to 7k)) i would like to help: https://www.mersenneforum.org/showthread.php?t=27150
|
![]() |
![]() |
![]() |
#7 |
"Curtis"
Feb 2005
Riverside, CA
165D16 Posts |
![]()
Is your interest Mersennes only, primes of some other forms, or factoring too? Those are the three main categories this forum's users work on.
If you're searching for primes, the best bang-for-buck isn't a massive $5k machine; it's a gaming-class machine with fast memory, and if a GPU can be found at reasonable price then the GPU can do perhaps more work than all the cores of the CPU (depending on how nice a GPU one can locate, of course). GPU software is best cut out for Mersenne work, while the CPU can search for Mersennes too, or other primes of smaller size, or yet other projects around here. |
![]() |
![]() |
![]() |
#8 | |
Mar 2021
548 Posts |
![]() Quote:
I do have a speedy Core I7 laptop that i could use for this project, an MSI Creator 17 A10SGS-252 which has : Creator 17 A10SGS-252 CPU Core i7-10875H; 2.3 - 5.1GHz GPU NVIDIA GeForce RTX2080 Super Max-Q Is that good enough a machine? BTW, i bought Elementary Number Theory: Primes, Congruences, and Secrets by William Stein to help me understand some of the material regarding nfs/gnfs. If anyone has any other recommendations, i'd love to hear it. (I'm struggling with putting the concept of ideals into code ) Last fiddled with by LarsNet on 2021-09-22 at 21:17 |
|
![]() |
![]() |
![]() |
#9 |
"Curtis"
Feb 2005
Riverside, CA
52·229 Posts |
![]()
"good enough" is a matter of your level of patience. The only limitation that machine has other than "time spent to get a result" is that RAM installed limits the maximum size of NFS job you can run. An 8GB machine tops out around GNFS-165 if running msieve + GGNFS, and more like GNFS 150 digits if running CADO. 16GB gets you about 15 digits larger capacity, though by that size your patience likely limits you as much as memory capacity.
For any other task run on this forum, your machine is fine- it may take twice as long, but so what? If your interests get varied or intense enough to want to be able to run more tasks (or run tasks more quickly), then you know it's time to acquire a faster machine. |
![]() |
![]() |
![]() |
#10 | |
Mar 2021
22×11 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
(M48) NEW MERSENNE PRIME! LARGEST PRIME NUMBER DISCOVERED! | dabaichi | News | 571 | 2020-10-26 11:02 |
mersenne prime number application? | Tamay82 | Information & Answers | 3 | 2018-09-08 16:34 |
Number of distinct prime factors of a Double Mersenne number | aketilander | Operazione Doppi Mersennes | 1 | 2012-11-09 21:16 |
Probability of a Mersenne number being prime | vimil | Information & Answers | 13 | 2007-12-12 11:21 |
40th Prime Mersenne Number? | Unregistered | Software | 7 | 2003-12-05 09:12 |