mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2019-05-07, 21:47   #23
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/

24×199 Posts
Default

Quote:
Originally Posted by Madpoo View Post
The smaller would have been found by only trial factoring to 37 bits, and the second one by TF to 49 bits. Doing either of those tests are trivial and would have finished in (seconds? couple minutes)?
On a GTX 580 without any particular tuning:

./mfaktc.exe -d 1 -tf 333333367 1 49
<snip>
found 2 factors for M333333367 from 2^ 1 to 2^49 [mfaktc 0.21 75bit_mul32_gs]
tf(): total time spent: 0.724s
Mark Rose is offline   Reply With Quote
Old 2019-05-09, 15:42   #24
Dr Sardonicus
 
Dr Sardonicus's Avatar
 
Feb 2017
Nowhere

11001000010012 Posts
Default

Quote:
Originally Posted by TheGuardian View Post
PS. May I ask how these huge numbers came to be factored? Surely most deterministic algorithms would take ages to complete.
In this particular case, the small factor is easily found by trial:

Code:
? p=333333367;for(i=1,1000,q=2*i*p+1;if(Mod(2,q)^p==Mod(1,q),print("q = 2*k*333333367 + 1 is a factor of M_333333367 for k = "i".  The  factor q is "q".");break))

q = 2*k*333333367 + 1 is a factor of M_333333367 for k = 137.  The  factor q is 91333342559.
Dr Sardonicus is offline   Reply With Quote
Old 2019-05-09, 21:01   #25
GP2
 
GP2's Avatar
 
Sep 2003

259010 Posts
Default

Quote:
Originally Posted by TheGuardian View Post
PS. May I ask how these huge numbers came to be factored? Surely most deterministic algorithms would take ages to complete.
For Mersenne numbers ( 2p−1 ), all factors must be of the form 2kp + 1 for some integer k.

That eliminates most factors immediately: for instance, for M333333367 the smallest theoretically possible factor would be 666,666,735 and not 3 or 5 or whatever. That's 2kp + 1 for k=1, or 2×1×333333367 + 1

And we only need a partial factorization. In fact we only really care about finding one factor. For M333333367, it turns out that the value of k which provides the first factor is k=137, and that is small enough to find almost immediately.

If you have an NVIDIA GPU, you can search for factors using the program mfaktc. It uses additional math to eliminate about 80% of the possible k values for any given p, and then trial factors the rest.
GP2 is offline   Reply With Quote
Old 2019-05-09, 21:53   #26
Dr Sardonicus
 
Dr Sardonicus's Avatar
 
Feb 2017
Nowhere

13×17×29 Posts
Default

Quote:
Originally Posted by GP2 View Post
For Mersenne numbers ( 2p−1 ), all factors must be of the form 2kp + 1 for some integer k.
<snip>
If you have an NVIDIA GPU, you can search for factors using the program mfaktc. It uses additional math to eliminate about 80% of the possible k values for any given p, and then trial factors the rest.
Amusingly, half of the candidates k are eliminated by the requirement that for p > 2, q = 2*k*p + 1 must be congruent to 1 or 7 (mod 8). This means that k must be congruent to 0 or -p (mod 4).

To get down to 20% of candidate k's, you have to eliminate 60% of the remaining 50%. That ain't chopped liver. Good job!
Dr Sardonicus is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
http://www.mersenne.ca/exponent/72977 - 'That is a weird number' Syntony mersenne.ca 3 2017-01-27 18:53
Fermat number F6=18446744073709551617 is a composite number. Proof. literka Factoring 5 2012-01-30 12:28
Please help me find a composite number (test2) allasc Math 0 2010-12-27 13:37
How long before you found your first composite number? Bundu Data 3 2004-08-14 12:21
Mersenne composite using fibonacci TTn Math 5 2002-11-23 03:54

All times are UTC. The time now is 15:37.


Fri Jul 7 15:37:35 UTC 2023 up 323 days, 13:06, 0 users, load averages: 1.43, 1.15, 1.09

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.

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