20100721, 01:48  #1 
"Jason Goatcher"
Mar 2005
110110110001_{2} Posts 
Base6 speed for prime testing vs. base2
It has been suggested to me that, when compared with the same size numbers(like 2 one million digit numbers, one base6, one base2) that base6 tests faster than base2. I think my computer is just wonky enough to not be trustworthy for Prime95, but still 100% stable for everything else.
Could someone run a test or 2 and compare base6 total time to a base2 of a similar size? 
20100721, 02:10  #2  
A Sunny Moo
Aug 2007
USA (GMT5)
1100001101001_{2} Posts 
Quote:
I'm not sure where the idea that base 6 is faster than base 2 came from. The only way that would happen is if the programs you were doing the tests with used different versions of the underlying gwnum FFT library (say, using LLR 3.7.1 for base 2 and the latest PFGW for base 6). Do you know which programs your source used for each base? 

20100721, 03:15  #3  
"Jason Goatcher"
Mar 2005
110110110001_{2} Posts 
Quote:
The only stuff he did that I know of that was actually publicly known was one of the sieving programs that was used by Riesel Sieve., JJSieve. Lately, though, he's been working on long prime series, those equations where you change one or more values according to a pattern and you get a steady stream of primes for a short time. I think PrimeGrid set a record recently having to do with that. He's been trying to come up with a super equation(or maybe I should say method) for generating these sequences. Last I talked to him, he was needing to make a siever type that isn't available, I forget the details. I say siever, but it was a bit different, kind of like looking at a file full of people and trying to get all the males with blue eyes, except the subjects are numbers and the criteria was mathematical qualities. 

20100721, 03:32  #4  
A Sunny Moo
Aug 2007
USA (GMT5)
1100001101001_{2} Posts 
Quote:
I do know that gwnum, George Woltman's FFT library which is used by Prime95, LLR, and PFGW (the major primetesting applications used today), has a gazillion different code branches for different CPU types. That includes optimizations specific to certain Intel and AMD architectures, and due to this gwnum is considered the premier FFT library out there now for this kind of work. That said, I would be interested in seeing some comparison data showing how it stacks up against the library your friend mentioned. Note that while sieving programs may have at one time been specialized by base, they are not any more. Currently the only "base specialized" sieve programs I know of are sr5sieve and ppsieve. sr5sieve is not any faster than running sr2sieve on the same base 5 numbers; it may have been at one time, but I don't believe that is the case any more. ppsieve is a sieve developed by PrimeGrid for use with their Proth Prime Search subproject; it currently works for Riesel and Sierpinski base 2 only. While at this time it is not designed for any other bases, I would expect that there would be no speed difference in making a specialized version of it for those rather than just using the general program. Basegeneralized sieve programs like sr2sieve dynamically calculate the optimal way to sieve a given sequence at startup; as I understand, there is no speed increase to be gained by hardcoding those methods into separate programs rather than calculating which to use dynamically. Regarding basespecialization for primality tests (LLR, Proth, PRP, etc.), until recently the gwnum library (as I understand itI may be wrong with some of the specifics) could do special modular arithmetic on base 2 numbers, but had to do general modular arithmetic on other bases. In gwnum v25.11, the ability to do special modular arithmetic on all bases was added, so now all gwnumbased programs are almost as fast on nonbase2 tests as they are for base 2. I would expect that there is a little room for improvement, to bring base >2 calculations up to par with base 2, but I don't really know enough about this stuff to be entirely sure. BTW, based on your comments regarding GPUs and prime searching, I'm wondering, has your friend by chance developed a program for doing primality tests on k*b^n+c numbers on GPUs? Currently a program has been developed in this forum for doing LL tests (i.e. Mersenne numbers/GIMPS for the uninitiated) on CUDA graphics cards, but so far nobody's come up with something similar to do LLR (a small modification of LL), Proth, or PRP tests to cover the rest of the k*b^n+c spectrum. 

20100721, 03:39  #5  
Jun 2003
7·23·29 Posts 
Quote:


20100721, 04:17  #6  
"Jason Goatcher"
Mar 2005
6661_{8} Posts 
Quote:
When I originally met him, I thought he was someone who needed medication, a person like me who wasn't doing quite as well. But the thing about delusional people is that their delusions inevitably have cracks, and if you point out the cracks, they can't deal with it. He is nothing like that. And if he was a compulsive liar(I considered this, since I don't have the mathematical education to comprehend a lot of his stuff) my own personal knowledge should've been able to catch him at some point in the last couple years. The thing is, other than some mental lapses where he gets confused he is very intelligent and very genuine. He had major kidney failure a while back and he's still recovering from a mental faculty standpoint, or it was liver failure, I forget; sent him into a temporary coma if I remember correctly. He doesn't do what he does because he wants notoriety. I can't tell you the reason he does his research(or part of the reason) because he would be very angry with me. It's not just about prime numbers, though that's his major focus when he talks to me. When he developed JJSieve, the result we have is an incomplete program, the Riesel Sieve guys were getting impatient. His original program(maybe it still does it, not sure) printed out "bucket numbers" which were basically used in a shortcut to improve sieving speed(I forget how buckets work). The siever we mostly use now(not newpgen, but the other one, can't remember the name) uses the factors of 2^6661, which he said was a hack, because it only partially used the potential of "buckets." He tried to explain it to me, but I didn't understand much past his explanation of what modulo means. Last fiddled with by jasong on 20100721 at 04:44 

20100721, 08:43  #7  
Mar 2006
Germany
101100011000_{2} Posts 
Quote:
JJSieve was done by JoeO, that's no secret! If I remeber correct, this is not the first time you're talking about something really new and a big advance in prime search! Stop talking about it! Give details and results! Until then stop rumouring! Last fiddled with by kar_bon on 20100721 at 08:54 

20100721, 11:15  #8 
Just call me Henry
"David"
Sep 2007
Cambridge (GMT)
5·17·67 Posts 
jasong has done this type of thing before. He has posted lots more than usual and in this way over the last few days elsewhere on the forum. I suspect that unfortunately he is in one of his "ill" phases.
Please do look at ppsieve GPU though for NPLB(and compare ppsieve CPU to s2sieve). ppsieve might be useful. 
20100721, 11:29  #9  
Quasi Admin Thing
May 2005
3·307 Posts 
Quote:
And at Jason, why is it that you keep referring to a "friend", who is always kept in the anonymous. I remember a while back, long before an actual 10M digit prime was found, that you claimed that one of your friends found a 10M digit prime and was elagibel (not sure that is spelled correct) for claiming the EFF price. We never saw such a prime, from your friend and GIMPs, as expected claimed the price less than a year later. So why is Jason that you keeps pushing peoples patience rather than starting to work with people? I know life isn't easy on you, heck it isn't easy on most people, but you could do yourself and everyone else a favour, by following the politely written advices that Karsten has come up with. It would really solve a lot of stupid problems. Thank you. Now everyone, take care and be good to one another KEP! 

20100721, 18:21  #10 
Nov 2008
2·3^{3}·43 Posts 

20100722, 07:31  #11 
Quasi Admin Thing
May 2005
3·307 Posts 

Thread Tools  
Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Riesel/Sierp base 2 evenk/evenn/oddn testing  gd_barnes  Conjectures 'R Us  422  20200805 05:56 
Base 13 prime found  Siemelink  Conjectures 'R Us  0  20091005 18:27 
Riesel base 3 new testing idea  gd_barnes  Conjectures 'R Us  10  20081220 00:19 
minidrive for highn testing on Sierp base 4  gd_barnes  Conjectures 'R Us  43  20080716 10:12 
Speed of P1 testing vs. Trial Factoring testing  eepiccolo  Math  6  20060328 20:53 