![]() |
![]() |
#1 |
"Mark"
Apr 2003
Between here and the
2×5×17×37 Posts |
![]()
I would like to see a feature to disable the PRP testing of the cofactor. This would be used on projects such as the primorial and factorial searches on PrimeGrid. All we want to do is "knock out" the original number from PRP testing if it is composite thus finding a factor is all that we need to do. PRP testing the cofactor adds no value to the project and can actually take longer than that PRP test for the original number (presuming GMP's PRP test is used).
|
![]() |
![]() |
![]() |
#2 |
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
![]()
This can currently be done by configuring with --enable-shellcmd, and specifying a program that always returns true (exit code 0) to the -prpcmd, for example:
ecm -prpcmd /bin/true [...] That way GMP-ECM thinks the cofactor is prime and stops trying to factor it. Code:
echo "2^(2^9)+1" | ./ecm -prpcmd /bin/true 1e3 GMP-ECM 6.3 [configured with GMP 4.3.0 and --enable-asm-redc] [ECM] Input number is 2^(2^9)+1 (155 digits) Using B1=1000, B2=51606, polynomial x^1, sigma=3861836176 Step 1 took 5ms Step 2 took 6ms ********** Factor found in step 2: 2424833 Found probable prime factor of 7 digits: 2424833 Probable prime cofactor (2^(2^9)+1)/2424833 has 148 digits |
![]() |
![]() |
![]() |
#3 | |
"Mark"
Apr 2003
Between here and the
2·5·17·37 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#4 | |
Jun 2003
Ottawa, Canada
100100101002 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 |
"Mark"
Apr 2003
Between here and the
2×5×17×37 Posts |
![]()
I can wait for it.
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Request | pinhodecarlos | Lounge | 3 | 2017-10-26 18:58 |
Bug/request | Dubslow | YAFU | 4 | 2012-03-31 03:07 |
Odd request? | Xyzzy | Lounge | 23 | 2011-03-08 17:50 |
A little request | 10metreh | Aliquot Sequences | 8 | 2009-10-07 18:13 |
Request: P-1 79M | PageFault | Marin's Mersenne-aries | 11 | 2003-11-30 02:47 |