![]() |
|
|
#1 |
|
Dec 2011
After milion nines:)
1,451 Posts |
I found this little anomaly so if someone can solve mistery :)
D:\PGEN>llr64 -d -q"2976*9^1000000+1" Base prime factor(s) taken : 3 Starting N-1 prime test of 2976*9^1000000+1 Using all-complex AVX FFT length 256K, Pass1=256, Pass2=1K, 4 threads, a = 3 2976*9^1000000+1, bit: 140000 / 3169934 [4.41%]. Time per bit: 0.364 ms. Caught signal. Terminating. D:\PGEN>llr64 -d -q"2976*3^2000000+1" Base prime factor(s) taken : 3 Starting N-1 prime test of 2976*3^2000000+1 Using all-complex AVX FFT length 240K, Pass1=1280, Pass2=192, 4 threads, a = 3 2976*3^2000000+1, bit: 141000 / 3169935 [4.44%]. Time per bit: 0.444 ms. Caught signal. Terminating. So basicly, those two numbers are same, but test with base 9 is faster then test in base 3. I was expection opossite results but if someone has some to say... :) Computer was on idle and only LLR was running while I do this test |
|
|
|
|
|
#2 |
|
"Curtis"
Feb 2005
Riverside, CA
22·1,217 Posts |
That's too small a test for 4 threads to be efficient;if you repeat the test single-threaded, perhaps you can distinguish between one FFT using 4 threads more effectively and base-9 actually being faster.
I mean, 256k FFT may use 4 threads better than 240k. Anything smaller than 100k (128k?) per thread is mostly wasted. |
|
|
|
|
|
#3 |
|
Dec 2011
After milion nines:)
1,451 Posts |
1 core
D:\PGEN>llr64 -d -q"2976*9^1000000+1" Base prime factor(s) taken : 3 Starting N-1 prime test of 2976*9^1000000+1 Using all-complex AVX FFT length 256K, Pass1=256, Pass2=1K, a = 3 2976*9^1000000+1, bit: 23000 / 3169934 [0.72%]. Time per bit: 1.235 ms. Caught signal. Terminating. D:\PGEN>llr64 -d -q"2976*3^2000000+1" Base prime factor(s) taken : 3 Starting N-1 prime test of 2976*3^2000000+1 Using all-complex AVX FFT length 240K, Pass1=1280, Pass2=192, a = 3 2976*3^2000000+1, bit: 20000 / 3169935 [0.63%]. Time per bit: 1.247 ms. Caught signal. Terminating. It looks it was main reason! Thanks |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GMP-ECM for base-2? | CRGreathouse | Factoring | 1 | 2010-12-29 08:45 |
| Base-6 speed for prime testing vs. base-2 | jasong | Conjectures 'R Us | 36 | 2010-08-03 06:25 |
| Base 6 | masser | Conjectures 'R Us | 2 | 2008-06-27 04:29 |
| Log to what base? | edorajh | Math | 5 | 2003-12-17 16:31 |
| base 3 | ET_ | Puzzles | 1 | 2003-12-13 10:45 |