![]() |
|
|
#298 | |
|
Dec 2011
After milion nines:)
145110 Posts |
Quote:
The default behavior of twinsieve is that if a factor is found for -1, then -1 and +1 terms are removed. And I dont search twin primes, and this is not "ordinary" twinsiever. So I ask Rogue, that add switch that will skip removing of +1 factor if factor for -1 is found. ( or in reverse order) So in total I got: when sieve process is done I got sieve file for +/-side but I only sieve once: so speedup is already 50% :) Second: why use base3? This is my little project: I already find "pair" of primes with same exponent on base2 , and now i switch on base 3 :) P.S When I do base2 search your fast error checking was flawless Mr. Gerbicz Last fiddled with by pepi37 on 2018-10-06 at 05:52 Reason: add more text |
|
|
|
|
|
|
#299 | |
|
Dec 2011
After milion nines:)
1,451 Posts |
Quote:
Ok, then little XLS sheet will found those pairs, so I will test it different time, and all my problems are solved :) |
|
|
|
|
|
|
#300 |
|
Sep 2003
50318 Posts |
Here's an interesting bug:
Create worktodo.txt with the following line: Code:
[Worker #1] ECM2=1,3,34961,-1,50000,5000000,279,"2" Create a suitable local.txt, and prime.txt with UsePrimenet=0, because Primenet doesn't want this result. Use the save file e0034961 from the zip file attached to this post. This will run the ECM curve with s=4898604651034280. Run mprime -d The result is: Code:
[Main thread Oct 10 22:48] Starting worker. [Work thread Oct 10 22:48] Worker starting [Work thread Oct 10 22:48] Using FMA3 FFT length 3K [Work thread Oct 10 22:48] ECM on 3^34961-1: curve #243 with s=4898604651034280, B1=50000, B2=5000000 [Work thread Oct 10 22:48] Using 65MB of memory in stage 2. [Work thread Oct 10 22:48] Stage 2 init complete. 18626 transforms, 2 modular inverses. Time: 0.253 sec. [Work thread Oct 10 22:48] 3^34961-1 has a factor: 216349680636949431... ... ... ... ...1985595899541669816801 (ECM curve 243, B1=50000, B2=5000000) Segmentation fault When I try running the same parameters with GMP-ECM, nothing special happens. No factor is found: Code:
echo "(3^34961-1)/2" | ./ecm -sigma 4898604651034280 50000 5000000 GMP-ECM 7.0.4 [configured with GMP 6.1.1, --enable-asm-redc] [ECM] Input number is (3^34961-1)/2 (16681 digits) Using B1=50000, B2=5000000, polynomial x^1, sigma=0:4898604651034280 Step 1 took ...ms Step 2 took ...ms |
|
|
|
|
|
#301 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
2×3×11×73 Posts |
Quote:
|
|
|
|
|
|
|
#302 | |
|
Sep 2014
278 Posts |
Quote:
This job runs just fine: Code:
[Worker #1] ECM2=1,3,34961,-1,50000,5000000,1,4898604651034280,"2" Code:
[Oct 15 14:14] ECM on 3^34961-1: curve #1 with s=4898604651034280, B1=50000, B2=5000000 [Oct 15 14:14] Stage 1 complete. 1286025 transforms, 1 modular inverses. Time: 10.312 sec. [Oct 15 14:14] Using 65MB of memory in stage 2. [Oct 15 14:14] Stage 2 init complete. 18313 transforms, 1 modular inverses. Time: 0.215 sec. [Oct 15 14:14] Stage 2 complete. 592895 transforms, 1 modular inverses. Time: 5.134 sec. [Oct 15 14:14] Stage 2 GCD complete. Time: 0.051 sec. [Oct 15 14:14] 3^34961-1 completed 1 ECM curve, B1=50000, B2=5000000, We4: 01420FF3 [Oct 15 14:14] No work to do at the present time. Waiting. |
|
|
|
|
|
|
#303 | |||
|
Sep 2003
258510 Posts |
Quote:
Quote:
Quote:
|
|||
|
|
|
|
|
#304 | |
|
Sep 2014
1716 Posts |
Quote:
|
|
|
|
|
|
|
#305 | |
|
Sep 2003
5×11×47 Posts |
Quote:
But the savefile was written by mprime itself, so it's some kind of rare bug one way or another. And the original crash happened in the middle of a run, so resuming from the savefile merely reproduced that crash. In other words, I don't think it's because of corruption introduced by the routines that write the savefile. |
|
|
|
|
|
|
#306 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
10101001011002 Posts |
I had thought that if I gave prime95 v29.4b8 plenty of ram allocation, that it would use bounds that satisfy primenet targets. But it seems it falls well short. See for example https://www.mersenne.ca/exponent/89200591 which was run with a memory limit of 16GB for the 4-core worker.
Code:
Limit Ghz-Days Probability B1 B2 Actual 276 171.5683 84.2649% 720,000 14,220,000 PrimeNet 271 5.3596 80.9970% 970,000 24,250,000 GPU72 275 85.7832 83.6597% 970,000 24,250,000 Difference +1 +85.7851 +0.6052% -250,000 -10,030,000 Is there a way to cause v29.4 to automatically go to the primenet bounds? Is satisfying primenet P-1 bounds something that will or could be included in v29.5 as an option? Is there some reason matching primenet bounds is at least sometimes a bad idea? |
|
|
|
|
|
#307 | |
|
"James Heinrich"
May 2004
ex-Northern Ontario
65358 Posts |
Quote:
The important thing to note in the table you copy-pasted is the "Combined Probability" column, which is the chance of finding a factor with both TF and P-1: Prime95 CPU limits: TF:71, B1:970000, B2: 24250000 = 86.8439% Actual work done: TF:76, B1:720000, B2: 14220000 = 87.3853% Much more TF, somewhat less P-1, but overall a higher chance of finding a factor. If you really truly want to get Prime95 to pick the higher bounds you can manually enter the bounds in worktodo (see undoc.txt for details), or you can adjust the bitlevel in your existing worktodo lines to a lower level, but just be aware that Prime95 automatically selects the optimal bounds and any changes you make will likely lower GIMPS overall throughput (even if you do find more factors). edit: also note two things about the bounds on mersenne.ca: 1) the P-1 bounds in the GPU72 line are wrong, they are not adjusted as described above, I need to figure out how to do so. 2) the P-1 bounds in general are close to magic numbers, they're currently plucked off an Excel graph I did in 2008 based on observed bounds for exponents 1M-500M, so while they might be reasonably close to reality, they'll never match exactly. Last fiddled with by James Heinrich on 2018-10-22 at 13:39 |
|
|
|
|
|
|
#308 | |
|
Sep 2006
Brussels, Belgium
13×131 Posts |
Quote:
As far as I know "PrimeNet" bounds are a concept used by mersenne.ca only. The Prime95 program calculates the bounds for each work-unit based on how deep factored, the number of LL tests saved and the available memory. The bounds are based on the assumption that the same machine will do the LL tests. Also I have always had a better success rate than that calculated by Prime 95. Once you allow the program to use a reasonable quantity of memory it doesn't affect the bounds very much, it will have an influence on the Brent-Sumaya extensions. In other words, at the moment, except by modifying the work-units in the worktodo.txt file there is nothing you can do. But you can ask George if he would consider introducing a fiddling factor for P-1 factoring. There is another way you can drastically change the bounds used by Prime95 : change the number of LL tests saved, by default it is set at two. Jacob Last fiddled with by S485122 on 2018-10-22 at 13:42 Reason: James' answer |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prime95 version 27.3 | Prime95 | Software | 148 | 2012-03-18 19:24 |
| Prime95 version 26.3 | Prime95 | Software | 76 | 2010-12-11 00:11 |
| Prime95 version 25.5 | Prime95 | PrimeNet | 369 | 2008-02-26 05:21 |
| Prime95 version 25.4 | Prime95 | PrimeNet | 143 | 2007-09-24 21:01 |
| When the next prime95 version ? | pacionet | Software | 74 | 2006-12-07 20:30 |