![]() |
|
|
#45 | |
|
Quasi Admin Thing
May 2005
3EB16 Posts |
Quote:
|
|
|
|
|
|
|
#46 |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
I have no clue how I messed that up because I ran a test and thought it generated the correct output. The code bug was obvious. I did revert the change for k, so that fbncsieve supports k=1.
Last fiddled with by rogue on 2023-05-29 at 12:52 |
|
|
|
|
|
#47 |
|
"Gary"
May 2007
Overland Park, KS
1229610 Posts |
The lion's share of it looks correct but it has problems with base 2.
Small issue: k=1 is in the primes file for R2. Since 1*2^1-1 = 1, it should not be there. PFGW lists it as unity in its output file. I suppose you could either put it in the factors file as unity or drop it all together for R2 only. Main problem: Both R2 and S2 are dropping all even k's. This is causing it to drop terms that should be there in both the factors and primes files. Fbncsieve factor of 3 for R2 k<50: Code:
3 | 5*2^1-1 3 | 11*2^1-1 3 | 17*2^1-1 3 | 23*2^1-1 3 | 29*2^1-1 3 | 35*2^1-1 3 | 41*2^1-1 3 | 47*2^1-1 Code:
1*2^1-1 is Unity (1) 5*2^1-1 trivially factors as: 3^2 8*2^1-1 trivially factors as: 3*5 11*2^1-1 trivially factors as: 3*7 14*2^1-1 trivially factors as: 3^3 17*2^1-1 trivially factors as: 3*11 20*2^1-1 trivially factors as: 3*13 23*2^1-1 trivially factors as: 3^2*5 26*2^1-1 trivially factors as: 3*17 29*2^1-1 trivially factors as: 3*19 32*2^1-1 trivially factors as: 3^2*7 35*2^1-1 trivially factors as: 3*23 38*2^1-1 trivially factors as: 3*5^2 41*2^1-1 trivially factors as: 3^4 44*2^1-1 trivially factors as: 3*29 47*2^1-1 trivially factors as: 3*31 Code:
1 1 3 1 7 1 9 1 15 1 19 1 21 1 27 1 31 1 37 1 45 1 49 1 Code:
2*2^1-1 3*2^1-1 4*2^1-1 6*2^1-1 7*2^1-1 9*2^1-1 10*2^1-1 12*2^1-1 15*2^1-1 16*2^1-1 19*2^1-1 21*2^1-1 22*2^1-1 24*2^1-1 27*2^1-1 30*2^1-1 31*2^1-1 34*2^1-1 36*2^1-1 37*2^1-1 40*2^1-1 42*2^1-1 45*2^1-1 49*2^1-1 I checked for k's that were multiples of the base on other bases and it did not have this problem. There must be some special code in place that doesn't allow base 2 to consider even k's on either the Riesel or Sierpinski side. Everything also seemed to work OK for bases 4, 8, and 16. I did not have time to do much testing tonight so I'm having to stop with just this problem for base 2. I'll have more time later on Tuesday to test such things as large bases and huge k's and n's as well as various unusual exception situations. |
|
|
|
|
|
#48 |
|
"Mark"
Apr 2003
Between here and the
3·2,447 Posts |
For base 2 the code ignores even ks. I have debated the value of that change. I can easily remove it and leave it to end users to filter out even k for base 2.
I could change min k to 2 for base 2 and c = -1, but nobody would use the code to sieve it. |
|
|
|
|
|
#49 | |
|
"Gary"
May 2007
Overland Park, KS
23×29×53 Posts |
Quote:
As for stand-alone running of fbncsieve, I feel that the user should be able to decide whether they want k's that are a multiple of the base in there regardless of what base it is. The program should not decide for them. I would not change the min k for base R2. k=1 should be allowed for R2 k=1 & n=(something huge) just like all other bases. If n>1 then its result can go to the factor file or sieve file like its normal process. If n=1 then do a special process. It could be thrown out or written to a "unity" line in the factor file like PFGW does in its output. By writing the unity line in the factor file, you effectively account for all k's so that there is a total of 10,000 lines combined written for a k-range of 1-10,000 in the factor plus sieve files. At the moment, that is what happens on all even bases except for base 2. |
|
|
|
|
|
|
#50 | |
|
"Mark"
Apr 2003
Between here and the
1CAD16 Posts |
Quote:
fbncsieve only removes odd k for odd bases. Use of -r can remove k where k % base = 0. So if someone wants to remove even k for base 2, then can use -r to do it. srbsieve no longer passes -r to fbncsieve. |
|
|
|
|
|
|
#51 |
|
"Mark"
Apr 2003
Between here and the
3·2,447 Posts |
Outside of the other changes that have been mentioned, the biggest change is what happens if a number that is PRP turns out to be composite during the primality test. These composites be written to a file called pl_unknown.txt and srbsieve will not test those k further. This means that you will need to test those k externally to srbsieve to find the smaller prime for them. The changes of this are extremely small.
|
|
|
|
|
|
#52 | |
|
Random Account
Aug 2009
Not U. + S.A.
22×5×11×13 Posts |
Quote:
fbncsieve is a different story. All of the v1.6.3 versions fail within srbsieve. v1.6.1 runs alright. I never saw a v1.6.2 if it ever existed. I have so many versions downloaded here that I cannot tell them apart. Perhaps an extra digit might help, e.g. 1.6.3.1 for example. Each modification would increase the last digit. Why? Reverting to a working previous version. |
|
|
|
|
|
|
#53 |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
The fbncsieve versions posted here are "alpha" versions. I will post a beta in the mtsieve thread this week.
|
|
|
|
|
|
#54 | |
|
"Alexander"
Nov 2008
The Alamo City
991 Posts |
Quote:
And, as an aside, given all the breaking changes in srbsieve, I would have bumped the version to 2.0 rather than 1.4. Last fiddled with by Happy5214 on 2023-05-30 at 18:30 Reason: Aside on version |
|
|
|
|
|
|
#55 | |
|
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
3·23·89 Posts |
Quote:
Would probably suggest releasing new versions as release candidates currently until we have some confidence in them. |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Srbsieve.ini files for starting up new ranges and conjectures | KEP | Conjectures 'R Us | 5 | 2020-10-21 02:24 |
| Programs and libraries in C for testing prp | enzocreti | enzocreti | 9 | 2019-01-26 04:50 |
| GPU Testing programs | nucleon | GPU Computing | 5 | 2011-08-21 04:24 |
| Primality-testing program with multiple types of moduli (PFGW-related) | Unregistered | Information & Answers | 4 | 2006-10-04 22:38 |
| RMA 1.6 fixes LLR bugs! | TTn | 15k Search | 16 | 2004-06-16 01:22 |