mersenneforum.org mtsieve
 Register FAQ Search Today's Posts Mark Forums Read

2020-01-12, 18:07   #265
rebirther

Sep 2011
Germany

23·313 Posts

Quote:
 Originally Posted by rogue (going off of memory here) I think this is the -fB option. Can you verify that it exists in the latest released version and if it does, if that is what you are looking for?

yes -fB and no its not working

2020-01-13, 01:20   #266
rogue

"Mark"
Apr 2003
Between here and the

22×33×5×11 Posts

Quote:
 Originally Posted by rebirther yes -fB and no its not working
What do you mean by "not working"? Please be more specific.

2020-01-13, 07:47   #267
Happy5214

"Alexander"
Nov 2008
The Alamo City

2·193 Posts

Quote:
 Originally Posted by rogue What do you mean by "not working"? Please be more specific.
If it's the same issue as before, I posted a fix at https://www.mersenneforum.org/showpo...&postcount=195. It wasn't in SVN last time I checked.

2020-01-13, 13:51   #268
rogue

"Mark"
Apr 2003
Between here and the

22×33×5×11 Posts

Quote:
 Originally Posted by Happy5214 If it's the same issue as before, I posted a fix at https://www.mersenneforum.org/showpo...&postcount=195. It wasn't in SVN last time I checked.
I might have committed the source, but not posted a new build. I'll take a look as soon as I have a chance.

2020-01-13, 21:23   #269
rogue

"Mark"
Apr 2003
Between here and the

22×33×5×11 Posts

Quote:
 Originally Posted by rogue I might have committed the source, but not posted a new build. I'll take a look as soon as I have a chance.
I have uploaded 1.9.6 to sourceforge. 1.9.5 is still available as I didn't have enough time to test the change in 1.9.6.
• Refactored logic for "single worker" and "rebuild" logic so they work more nicely together.
• Fixed calculation of p/sec which is wrong after workers are recreated.
• Reset factor stats whenever workers are created as the rate is inflated for lower p as far more terms are removed.
• Fix issue with multiple threads which can cause program to hang.
• Add support for ABC format to srsieve2.

srsieve now supports ABNP options for the file format. If they don't work as desired, please let me know. Option B is the one that generates a newpgen like header for BOINC. I think that ABC is the PRP format that you are looking for, but as I stated above, I haven't had time to test. I had made these changes months ago.

Last fiddled with by rogue on 2020-01-13 at 21:25

 2020-01-14, 16:33 #270 rebirther     Sep 2011 Germany 250410 Posts Thx rogue, still not working: output: Code: n:\sierp-base267>srsieve2 -n2501 -N10000 -P1e9 -spl_remain.txt -fB srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and vari able k and n Sieving with generic logic n:\sierp-base267>pause after trying to sieve the file it will abort all the time without an error.
2020-01-14, 17:19   #271
rogue

"Mark"
Apr 2003
Between here and the

22×33×5×11 Posts

Quote:
 Originally Posted by rebirther Thx rogue, still not working: output: Code: n:\sierp-base267>srsieve2 -n2501 -N10000 -P1e9 -spl_remain.txt -fB srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and vari able k and n Sieving with generic logic n:\sierp-base267>pause after trying to sieve the file it will abort all the time without an error.

 2020-01-15, 14:52 #272 Happy5214     "Alexander" Nov 2008 The Alamo City 2×193 Posts I'm getting a segfault with srsieve2 from SVN: Code: $./srsieve2 -W 3 -n 1 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1" srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n Sieving with generic logic Segmentation fault (core dumped) Generally, I have consistently been having issues with n ranges starting with 1. 2020-01-15, 15:23 #273 rogue "Mark" Apr 2003 Between here and the 10111001101002 Posts Quote:  Originally Posted by Happy5214 I'm getting a segfault with srsieve2 from SVN: Code: $ ./srsieve2 -W 3 -n 1 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1" srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n Sieving with generic logic Segmentation fault (core dumped) Generally, I have consistently been having issues with n ranges starting with 1.
Both mtsieve 1.9.5 and 1.9.6 or just 1.9.6?

2020-01-15, 19:22   #274
rogue

"Mark"
Apr 2003
Between here and the

22·33·5·11 Posts

Quote:
 Originally Posted by rebirther Thx rogue, still not working: output: Code: n:\sierp-base267>srsieve2 -n2501 -N10000 -P1e9 -spl_remain.txt -fB srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and vari able k and n Sieving with generic logic n:\sierp-base267>pause after trying to sieve the file it will abort all the time without an error.
Stupid error on my part. It will be fixed and posted later today.

2020-01-15, 19:29   #275
rogue

"Mark"
Apr 2003
Between here and the

22·33·5·11 Posts

Quote:
 Originally Posted by Happy5214 I'm getting a segfault with srsieve2 from SVN: Code: \$ ./srsieve2 -W 3 -n 1 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1" srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n Sieving with generic logic Segmentation fault (core dumped) Generally, I have consistently been having issues with n ranges starting with 1.
The segfault is the same issue. I'm not certain why one just terminates without a segfault and the other does. For this range I now see this:

Code:
srsieve2 -W 3 -n 100 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Sieve started: 2 < p < 1e9 with 1499901 terms (100 < n < 1500000, k*2^n+c) (expecting 1449733 factors)
Sieving with generic logic
Split 1 base 2 sequence into 1 base 2^120 sequences.
Fatal Error:  963643*2^14263-1 mod 269 = 142
I don't know what is causing that yet. Fortunately you can break it up into smaller ranges:

Code:
srsieve2 -W 3 -n 1 -N 200 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Sieve started: 2 < p < 1e9 with 200 terms (1 < n < 200, k*2^n+c) (expecting 193 factors)
Sequence 963643*2^n-1 removed as all terms have a factor
Fatal Error:  All sequences have been removed

srsieve2 -W 3 -n 200 -N 5000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Sieve started: 2 < p < 1e9 with 4801 terms (200 < n < 5000, k*2^n+c) (expecting 4640 factors)
Sieving with generic logic
Split 1 base 2 sequence into 1 base 2^24 sequences.
Sieving with generic logic
Split 1 base 2 sequence into 1 base 2^24 sequences.

Sieve interrupted at p=694848779.
Processor time: 21.72 sec. (0.39 sieving) (2.82 cores)
8 terms written to t17_b2.prp
Primes tested: 33000000.  Factors found: 0.  Remaining terms: 8.  Time: 7.69 seconds.
and eventually test the entire range. That is just a workaround. I still need to find the root cause of this issue and fix it.