mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2021-11-19, 21:36   #23
nordi
 
Dec 2016

127 Posts
Default

Quote:
Originally Posted by kruoli View Post
  1. Run Prime95/mprime with Pminus1=1,2,{exponent},-1,{B1},0.
  2. Now, a save file exists m{zero padded exponent}.
  3. Open the file in a Hex Editor.
    1. Remove the first 88 bytes.
    2. Reverse all bytes.
    3. Copy the hexadecimal representation.
    4. Remove leading zeros.
    5. Convert this to lower case.
  4. Create a new file with this content:
    Code:
    METHOD=P-1; B1={B1}; N=2^{exponent}-1; X=0x{modified hex data from the last step}; CHECKSUM=0; PROGRAM=; Y=0x0; X0=0x3; Y0=0x0; WHO=; TIME=;
  5. ...
Thanks a LOT! Since I'm lazy, I automated steps II and III with some Python (version 3.6 or higher) code:
Code:
# fill in these 3 values:
b1 = 1000000
exponent = 5273
known_factors = [38134337, 10372530354079, 105636369464519254639]

input_file = "m{:07}".format(exponent)
if known_factors:
    known_factors = "/" + "/".join(map(str, known_factors))
else:
    known_factors = ""
with open(input_file, "rb") as f:
    data = reversed(f.read()[88:])

hex_codes = "".join(map("{:02x}".format, data))

line = "METHOD=P-1; B1={}; N=(2^{}-1){}; X=0x{}; CHECKSUM=0; PROGRAM=; Y=0x0; X0=0x3; Y0=0x0; WHO=; TIME=;".format(
        b1, exponent, known_factors, hex_codes
)
print(line)
This even works with known factors: In my test run with M5273 I found the missing 26 digit factor via gmp-ecm.
nordi is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected from AMD M344587487 Hardware 18 2018-08-08 15:17
Unexpected Factor apocalypse PrimeNet 6 2015-03-15 19:31
Unexpected jackpot fivemack Factoring 6 2010-11-10 19:34
Aliquot Termination Question - Largest Prime? EdH Aliquot Sequences 6 2010-04-06 00:12
A new termination below 100k 10metreh Aliquot Sequences 0 2010-03-11 18:24

All times are UTC. The time now is 14:08.


Fri Jul 7 14:08:44 UTC 2023 up 323 days, 11:37, 0 users, load averages: 1.66, 1.39, 1.24

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔