![]() |
|
|
#397 |
|
Mar 2003
New Zealand
13·89 Posts |
This version fixes two bugs in the Sobistrator compatibility mode (when using the -j switch):
1. Ranges in SoBStatus.dat are now written with the pmax= line before the pmin= line. Ranges read from SoBStatus.dat and nextrange.txt can now have the lines in either order. 2. Now when the -r switch is given with the -j switch, RieselStatus.dat is used instead of SoBStatus.dat. |
|
|
|
|
|
#398 |
|
Mar 2003
New Zealand
13·89 Posts |
When a factor p is found to divide a term k*b^n+c, these versions now check whether p == k*b^n+c, and if so the term is logged as a prime but not removed from the sieve and not reported as a factor.
This behaviour is compatible with srsieve, but not with NewPGen or most other sieve programs. It only ever affects terms with exponents n <= 64. In some situations leaving a small prime term in the sieve can impede performance, as it can form exceptions to otherwise regular patterns in the remaining exponents. If in doubt, test all small terms with LLR then remove them from the sieve manually. |
|
|
|
|
|
#399 |
|
I quite division it
"Chris"
Feb 2005
England
1000000111012 Posts |
sr1sieve1.exe 1.2.1
The seconds per factor readout seems to be inaccurate. After saying '9 seconds' every time I looked for two hours, I restarted. It now says '63 seconds' which looks about right. |
|
|
|
|
|
#400 |
|
"Jason Goatcher"
Mar 2005
350710 Posts |
Uh, geoff, I have a request. Someone told me it was a "small" request, but I don't know enough number theory to know whether or not they're correct.
I have a friend, I won't give his name since he wants the information about what he's working on kept secret, but he believes that he's found, through number theory, a k that will produce many, many primes, on both the +1 and -1 sides. The problem is I don't know of an efficient way to sieve twin prime files on fixed n instead of k. That's where my request comes in. Would it be possible for you to make a twin prime feature in srsieve or sr2sieve(or both) that would allow a fixed k, range of n sieve for twin primes? |
|
|
|
|
|
#401 | |
|
Mar 2003
New Zealand
22058 Posts |
Quote:
I haven't been able to think of a good way solve this yet. Any suggestions for a better formula in terms of these variables would be welcome: Code:
t_start: Time at start of sieve. t_curr/t_prev: Time at current/previous status report. p_start: Start of sieve range. p_curr/p_prev: p at current/previous status report. f_curr: Number of factors found so far. Code:
(t_curr - t_prev) * (p_curr - p_start)
--------------------------------------
(p_curr - p_prev) * f_curr
|
|
|
|
|
|
|
#402 |
|
Jun 2003
508210 Posts |
I forget the actual name of the technique, but you can use a "weighted historical decay" (I totally made that name up -- like I said, forgot what it is called).
Basic idea: you have a historical average For the purpose of the sieve, a Something like Note that, And while outputting, do something like: Code:
if rate < 1 print 1/rate "sec/factor" else print rate "factor/sec" Last fiddled with by axn on 2007-12-02 at 03:00 |
|
|
|
|
|
#403 |
|
Mar 2003
New Zealand
13×89 Posts |
These versions fix a bug that could cause a segfault in some situations. Thanks to AES for discovering it.
The bug could occur when the range of n in the sieve is very narrow. Exactly how narrow depends on a lot of factors, but the simplest way to check is to run with the -vv switch and look for a message like: BSGS range: X1*Y1 - X2*Y2. If both X1 and X2 (or just X1 for the x86-64 executable) are less than 8 then the bug MIGHT have affected the sieve. Large projects like SR5, RieselSieve SOB/PSP, etc. were not affected. |
|
|
|
|
|
#404 |
|
Mar 2003
New Zealand
13·89 Posts |
There is a message earlier in this thread on this topic. To sieve for twins of the form k*b^n+/-1, sieve the sequence (k*b^n+1)(k*b^n-1) = (k^2)*(b^2)^n-1.
|
|
|
|
|
|
#405 |
|
Mar 2003
New Zealand
13×89 Posts |
After closer checking I see that this bug could only have affected the x86-64 executable, and only srsieve versions 1.2.0-1.2.2 and sr2sieve versions 1.6.3-1.6.13 were affected. The only case where I have been able to actually trigger the bug is when the input sieve file contains exactly one term.
|
|
|
|
|
|
#406 |
|
May 2005
23·7·29 Posts |
Does it mean that the software could have missed some factors or falsely reported factors?
Last fiddled with by Cruelty on 2007-12-04 at 15:36 |
|
|
|
|
|
#407 |
|
Mar 2003
New Zealand
13×89 Posts |
It couldn't report false factors, it is possible that factors were missed, however by far the most likely result is that the program would crash soon after starting, and if it didn't crash then it is unlikely that the bug had any other effect.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Very Prime Riesel and Sierpinski k | robert44444uk | Open Projects | 587 | 2016-11-13 15:26 |
| Sierpinski/ Riesel bases 6 to 18 | robert44444uk | Conjectures 'R Us | 139 | 2007-12-17 05:17 |
| Sierpinski/Riesel Base 10 | rogue | Conjectures 'R Us | 11 | 2007-12-17 05:08 |
| Sierpinski / Riesel - Base 23 | michaf | Conjectures 'R Us | 2 | 2007-12-17 05:04 |
| Sierpinski / Riesel - Base 22 | michaf | Conjectures 'R Us | 49 | 2007-12-17 05:03 |