![]() |
|
|
#12 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
2×3×7×233 Posts |
When you get to the last step, just report the last 64 bits (in hex). Those who did some early work had shorter ones, like 16 bits. But as extra security, we use more.
|
|
|
|
|
|
#13 | |
|
Dec 2019
2×17 Posts |
Quote:
.For those that also want to do something like this in Python, it requires something like this (source here): >>> padding = 18 >>> residue = 1416317954 # residue 0x00000000546B4C02 >>> f"{residue:#0{padding}x}".upper() >>> '0x00000000546B4C02' # Residue matches! Last fiddled with by danc2 on 2020-06-28 at 07:32 Reason: variable names |
|
|
|
|
|
|
#14 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
536310 Posts |
It's very likely that the least significant 64 bits of the interim residue are stored in multiple words. Padding with zero instead of retrieving and assembling the 64 bits gives a falsified residue. (In gpuowl, prime95, etc, it's common that 17 or 18 bits are stored per 64-bit double precision floating point word. Prime95 also uses a pseudorandom number of bits initial shift, so even the first 16 bits may occupy parts of two words, and the full 64bit residue may occupy 5 words and require both reassembly and deshifting.)
|
|
|
|
|
|
#15 | |
|
Dec 2019
428 Posts |
Quote:
>>> padding = 18 >>> residue = residue = gmpy2.mpz(2.00595654682E+018) # should be approximate 0x1BD696D9F03D3002 (spreadsheet error prevented from showing actual value) >>> f"{residue:#0{padding}x}".upper() >>> '0X1BD696D9F0134900' # Residue is most likely correct That being said, I am going to check it against the last residue of a DC I am doing to be sure to see if they are the same. But it will be a while since my program is so slow .Thank you for mentioning this so I can check! |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A Mersenne number exercise | lukerichards | Number Theory Discussion Group | 12 | 2018-01-22 16:45 |
| Number of distinct prime factors of a Double Mersenne number | aketilander | Operazione Doppi Mersennes | 1 | 2012-11-09 21:16 |
| Number of Factors for a Mersenne Number | kurtulmehtap | Math | 12 | 2010-05-03 14:02 |
| Can i see every Number ive cleared since my team was created? | crash893 | Data | 12 | 2006-01-07 17:33 |
| conjucture in mersenne number | bouayoun | Miscellaneous Math | 12 | 2004-11-28 21:34 |