![]() |
![]() |
#23 | |
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
101101110100012 Posts |
![]() Quote:
Code:
return `echo "${big_mem}isprime($num,2)" | /usr/bin/gp -f -q ` == 1; |
|
![]() |
![]() |
![]() |
#24 |
"Ben"
Feb 2007
23×163 Posts |
![]() |
![]() |
![]() |
![]() |
#25 | |
"Ben"
Feb 2007
23·163 Posts |
![]() Quote:
@ CRG, my license (public domain) is not compatible with GPL, so it looks like PARI's implementation is out of bounds. Thanks for the suggestions. |
|
![]() |
![]() |
![]() |
#26 | |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
722110 Posts |
![]() Quote:
It reports one core of a 2600 "Proving probable primes <300 digits". I guess it's as simple as asking in the FDB forum what that core runs? |
|
![]() |
![]() |
![]() |
#27 | |
"Ben"
Feb 2007
23×163 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#28 |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
![]()
If I don't start YAFU in the dir which contains it, then it can't find yafu.ini or ggnfs binaries. Is there an easy fix for this? (Preferably yafu would always be able to find these things without having to pass in a cmdline switch.)
|
![]() |
![]() |
![]() |
#29 |
Nov 2009
35010 Posts |
![]()
Dubslow,
On *NIX systems I copied the yafu binary and the .ini file in /usr/local/bin. This allows one to just type: yafu "factor(<number>)" Which works until the ggnfs stage. For some reason yafu ignores the ggnfs line in the .ini file, but it reads the ecm line perfectly. |
![]() |
![]() |
![]() |
#30 |
"Ben"
Feb 2007
23·163 Posts |
![]()
I think there is a simple way to make everything relative to the binary location. I'll look into that.
|
![]() |
![]() |
![]() |
#31 |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
722110 Posts |
![]()
Regarding the PRP->P thing, what about whatever aliqueit uses? It certainly sees more than enough numbers going through that the PRP error rate is significant, so it has to have some primality proving algorithm in it.
(The closest thing I could find to a license was this: Code:
You may use the source and program however you see fit. I accept no responsibility for anything untoward that may happen to you, though I have no reason to suspect any such thing should happen. In the land of the free they are happy to try and sue you for anything though. You may not use this program unless you accept this agreement and take responsibility for your own actions. Otherwise, no soup for you! Last fiddled with by Dubslow on 2012-04-10 at 02:04 Reason: close paren :) |
![]() |
![]() |
![]() |
#32 | |
"Ben"
Feb 2007
23·163 Posts |
![]() Quote:
By default, YAFU uses 20 witnesses in mpz_is_probab_prime_p, or 1 chance in a trillion of being wrong on a random input. |
|
![]() |
![]() |
![]() |
#33 | |
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
37·317 Posts |
![]() Quote:
The maximum error rate of a Miller-Rabin PRP is 1/4. The maximum is only achieved for a small subset of the composites; for most the rate is much much smaller. |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ARM ASM request | ET_ | Programming | 0 | 2018-11-01 14:57 |
Bug/request | Dubslow | YAFU | 4 | 2012-03-31 03:07 |
Odd request? | Xyzzy | Lounge | 23 | 2011-03-08 17:50 |
Prime95 featured in Maximum PC! | ixfd64 | Software | 10 | 2010-05-31 15:21 |
GMP-ECM Request | rogue | GMP-ECM | 4 | 2009-11-23 15:07 |