![]() |
|
|
#1 |
|
Mar 2018
2×5×53 Posts |
PFGW does it make a strong probable prime test?
|
|
|
|
|
|
#2 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
23×3×5×72 Posts |
|
|
|
|
|
|
#3 |
|
"Dylan"
Mar 2017
24316 Posts |
From the pfgw doc, you might be able to get it using either the -t, -tc -tm or -tp switches (emphasis added by me):
Code:
-t Deterministic test.
This switch does not require any arguments. It will default to
-tm if not specified, but if specified, must be p, c, or m.
This option defaults to a N-1 test.
This is NOT a probable test.
You will want to use this mode whenever your number is easily
factorable when you subtract 1. (for example n!+1)
If the factorisation will be less then 33.33%, an F-strong test
will be performed.
-tp N+1 test.
uses the N+1 test to check whether the number is prime.
This is NOT a probable test.
You will want to use this mode whenever your number is easily
factorable when you add 1. (for example n!-1)
If the factorisation is less then 33.33%, an F-strong test
will be performed.
-tc Combined N+1 and N-1 test.
When you are short of factoring N-1, or N+1, and the other
has some factors, you can try this mode to achieve a prove.
This too is NOT a probable test.
If the factored portions are F1 and F2, with F1>F2, and 3*F1+F2 is
100% or more, pfgw will be able to complete the proof. If this total
is slightly below 100%, it should still be able to force a proof
with some square tests using the -x flag.
Code:
pfgw64 -q"2^173727+9" PFGW Version 3.8.3.64BIT.20161203.Win_Dev [GWNUM 28.6] 2^173727+9 is 3-PRP! (4.8504s+0.0008s) pfgw64 -t -q"2^173727+9" PFGW Version 3.8.3.64BIT.20161203.Win_Dev [GWNUM 28.6] Primality testing 2^173727+9 [N-1, Brillhart-Lehmer-Selfridge] Running N-1 test using base 3 2^173727+9 is PRP! (33.1117s+0.0006s) pfgw64 -tc -q"2^173727+9" PFGW Version 3.8.3.64BIT.20161203.Win_Dev [GWNUM 28.6] Primality testing 2^173727+9 [N-1/N+1, Brillhart-Lehmer-Selfridge] Running N-1 test using base 3 Running N+1 test using discriminant 7, base 1+sqrt(7) 2^173727+9 is Fermat and Lucas PRP! (54.5021s+0.0005s) |
|
|
|
|
|
#4 |
|
Mar 2018
2×5×53 Posts |
How to use PADRE (Perl)?
I want to use it for using functions like ispseudoprime, isprime... |
|
|
|
|
|
#5 |
|
Bamboozled!
"𒉺𒌌𒇷𒆷ð’€"
May 2003
Down not across
101010000000012 Posts |
|
|
|
|
|
|
#6 |
|
Mar 2018
2×5×53 Posts |
How can I import number theory utilities https://metacpan.org/pod/ntheory in PADRE (Perl)?
|
|
|
|
|
|
#7 |
|
Mar 2018
2×5×53 Posts |
-> Working on C:\Users\User\Desktop\PERL\Math-Prime-Util-0.70.tar.gz
Fetching file://C:/Users/User/Desktop/PERL/Math-Prime-Util-0.70.tar.gz ... OK Configuring Math-Prime-Util-0.70 ... OK ==> Found dependencies: Math::Prime::Util::GMP --> Working on Math::Prime::Util::GMP Fetching search.cpan.org/CPAN/authors/… ... FAIL ! Download search.cpan.org/CPAN/authors/… failed. Retrying ... ! Download search.cpan.org/CPAN/authors/… failed. Retrying .. Why failed? |
|
|
|
|
|
#8 | |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
22·1,549 Posts |
Quote:
Code:
~ curl -I http://search.cpan.org/CPAN/authors/id/D/DA/DANAJ/Math-Prime-Util-GMP-0.51.tar.gz HTTP/1.1 301 Moved Permanently Server: nginx Content-Type: text/plain Location: https://cpan.metacpan.org/authors/id/D/DA/DANAJ/Math-Prime-Util-GMP-0.51.tar.gz Cache-Control: max-age=31536000 Via: 1.1 varnish Content-Length: 5 Accept-Ranges: bytes Date: Sat, 16 Feb 2019 18:45:01 GMT Via: 1.1 varnish Age: 21208 Connection: keep-alive X-Served-By: cache-mdw17343-MDW, cache-sin18033-SIN X-Cache: HIT, MISS X-Cache-Hits: 1, 0 X-Timer: S1550342701.820462,VS0,VE438 |
|
|
|
|
|
|
#9 |
|
Mar 2018
2·5·53 Posts |
hallo
I installed on my computer Code Blocks a C compiler. It seems to work. Now I want to import number theory functions for example from GWNUM for checking primality and factorization. How can I do that? |
|
|
|
|
|
#10 | |
|
Sep 2002
Database er0rr
3,739 Posts |
Quote:
You might find GMP easier to use, but it not so great at huge numbers. Last fiddled with by paulunderwood on 2019-03-12 at 09:03 |
|
|
|
|
|
|
#11 |
|
Mar 2018
2×5×53 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GWNUM program | paulunderwood | Programming | 54 | 2021-02-10 12:46 |
| LLR V3.8.2 using gwnum 26.2 is available! | Jean Penné | Software | 25 | 2010-11-01 15:18 |
| GWNUM? | Unregistered | Information & Answers | 3 | 2010-09-12 19:52 |
| GWNUM as DLL? | Cyclamen Persicum | Software | 1 | 2007-01-02 20:53 |
| GWNUM library | bearnol | Software | 6 | 2006-02-24 11:19 |