![]() |
|
|
#1 |
|
Mar 2016
19×23 Posts |
"The GIMPS factoring code creates a modified sieve of Eratosthenes with each bit representing a potential 2kp+1 factor. The sieve then eliminates any potential factors that are divisible by prime numbers below 40,000 or so. Also, bits representing potential factors of 3 or 5 mod 8 are cleared. This process eliminates roughly 95% of potential factors. The remaining potential factors are tested using the powering algorithm above."
Only a short mathematical or algorithmic question: Why not making a list of 2kp+1 factors, clearing potential factors of 3 or 5 mod 8 and making then a sieving by the primes found by the quadratic sieve concerning f(n)=2n²-1. IMHO you need less primes to sieve and the result should be equal. P.S. I refer to the quadratic sieve described under: http://devalco.de/quadr_Sieb_2x%5E2-1.php
|
|
|
|
|
|
#2 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
24×3×163 Posts |
I think that quote is from the old days before GPU TF came to dominate.
As I understand it, there's a speed optimization involved. It can be faster to attempt factoring a Mersenne number with a set of factor candidates that contains a small fraction of composite factor candidates, than to spend additional effort to weed out more of the remaining composites and then trial factor the Mersenne number with a slightly reduced number of factor candidates. That's #9 of Concepts in GIMPS trial factoring (TF). Perhaps another candidate factor screening method would help throughput. I don't recall seeing whether it was considered during the applications' development. Any such method would need to be sufficiently faster at eliminating 75-81 bit (22-24 digit) candidate factors to justify the effort of modification. Last fiddled with by kriesel on 2021-05-29 at 21:03 |
|
|
|
|
|
#3 | ||
|
Romulan Interpreter
"name field"
Jun 2011
Thailand
240638 Posts |
Quote:
Quote:
Second, that would be slower. How many arbitrary numbers from 3 to a million are divisible by 13, 17, etc? And how many are divisible by primes generated by the series? (which are larger). In your matrix in the memory, there are more numbers divisible by small primes, than are divisible by large primes. So, using small primes gets rid of bad candidates faster. Last fiddled with by LaurV on 2021-05-30 at 10:29 |
||
|
|
|
|
|
#4 | ||
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
24·3·163 Posts |
Quote:
# Default: GPUSievePrimes=82486 # Default: GPUSievePrimes=81157 Tuning sometimes raises mfaktc's GPUSievePrimes setting up to 100,000 or more. I've never seen it lower as far as 50,000. Quote:
Last fiddled with by kriesel on 2021-05-30 at 11:18 |
||
|
|
|
|
|
#5 |
|
Mar 2016
19·23 Posts |
A peaceful night for you,
I try to describe a possible trial factor algorithm for mps: 0. Consider one mp. 1. Generate 10^9 primes and the n0 from the polynomial f(n)=2n²-1 2. Make a linear substitution for n0=2^[(p-1)/2]=2pk+1, you get a quadratic polynomial g(k) 3. h(k)= |g(k)- (2^p-1)| (The numbers should be smaller) 4. Recalculate from n0 for the 10⁹ primes the smallest k0, so that all primes t | h(k0) and sieve h(k0) 5. Check if q=h*(k0) (divised by the sieved primes) q =1 mod p 6. If q = 1 mod p then q is a factor of mp. Is this mathematical possible and senseful ? I am trying to program it, in order to check this. It would be nice to get some feedback.
Last fiddled with by bhelmes on 2021-06-30 at 00:14 |
|
|
|
|
|
#6 | |
|
Mar 2016
19·23 Posts |
Quote:
Nevertheless I have as result of the linear substitution a quadratic polynomial and can sieve it. Besides I can calculate (thanks to Nick) with the Tonelli-Shanks algorithm the roots for half of the primes. What is more I think a simple mod with the exponent of the Mp for the sieved out primes will be sufficient, that is better than a powermod. Is this mathematical correct or not ?
Last fiddled with by bhelmes on 2021-07-14 at 23:30 |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trial Factoring on AMD/ATI GPU's? | Stargate38 | GPU Computing | 9 | 2018-08-31 07:58 |
| How much Trial Factoring to do? | odin | Software | 4 | 2010-08-08 20:23 |
| over trial factoring | JFB | Software | 23 | 2004-08-22 05:37 |
| Trial factoring | Citrix | Software | 7 | 2004-02-26 03:24 |
| About trial factoring | gbvalor | Math | 4 | 2003-05-22 02:04 |