![]() |
|
|
#89 |
|
"Rashid Naimi"
Oct 2015
Remote to Here/There
80716 Posts |
Please see the attached screenshot along with the command documentation.
It takes less than 2 seconds. You can try the command yourself with a free account. |
|
|
|
|
#90 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
230038 Posts |
|
|
|
|
|
#91 |
|
"Rashid Naimi"
Oct 2015
Remote to Here/There
3·5·137 Posts |
Which means it actually takes a fraction of a second on the server, right or am I missing something.
|
|
|
|
|
#92 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
973110 Posts |
Quote:
Sure, in our modern age, we just "throw hardware at the problem". And that might make some sense. Machines and energy are cheap(ish). Programmers are expensive. BUT... Some actually want to optimize the equations. That also makes sense.... |
|
|
|
|
|
#93 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
this code takes 4 milliseconds for this single computation isn't necessarily useful ( though I do that a lot myself) because without knowing how the time scales people won't be sure if it's worth putting in the time it would take for other inputs for example two inputs a and b=2*a; if for input of b we double the time then the algorithm may be linear time complexity, if it quadruples the time it may be exponential, if b=a^2 and time doubles then maybe the algorithm may be logarithmic. same with number of operations if you say this algorithm takes 4 operations okay is that 4 additions, 4 multiplications, 4 divisions ( divisions are typically slow for computations unless they use a way of dividing that doesn't use much if any actual dividing). that and that it takes time to display an answer. Last fiddled with by science_man_88 on 2015-11-06 at 20:15 |
|
|
|
|
|
#94 |
|
"Dana Jacobsen"
Feb 2011
Bangkok, TH
22×227 Posts |
The point is that you're comparing two completely different operations.
PrimeQ is similar to Pari/GP's ispseudoprime, Perl/ntheory's is_prime, or mpz_prp's mpz_bpsw_prp (used by Python's gmpy 2.0). It runs very fast. It is a probable prime test. Nobody really knows what the Wolfram / Mathematica implementation really is (Pinch noted their "Lucas test" was not what the rest of the world calls a Lucas test and was strictly weaker than what BPSW should use, but that was 22 years ago). BPSW is great test, but I'm not sure how it applies here. It's meaningless in the EFF challenges. I have an old web page that does similar tests, though not factoring. It runs on the slow web host server rather than the browser, so the proof size is pretty limited. The test you're running with alpertron is a proof. APR-CL I believe (but could be wrong). That would be similar to Pari/GP's isprime, mpz_aprcl's mpz_aprcle, or FLINT's new APRCL code (not in master yet). Comparable to the ECPP methods of Primo or Perl/ntheory's is_provable_prime. They take massively longer to run than the probable prime test. A certificate (ECPP, Pratt, etc.) would work for EFF, but you can't just give a general form number of 1M digits to Primo and expect it to ever produce something. Hence the idea of building up the certificate, which at least isn't loony with today's resources (I was going to say practical, but that's stretching it). |
|
|
|
|
#95 |
|
"Rashid Naimi"
Oct 2015
Remote to Here/There
80716 Posts |
There is nothing in the documentation about the command being a probable prime test.
For the record none of these has anything to do with the EFF challenge. I think that can only be satisfied with mathematical proof and without calculating the the digits of the prime. |
|
|
|
|
#96 | |
|
"Dana Jacobsen"
Feb 2011
Bangkok, TH
22×227 Posts |
Quote:
http://reference.wolfram.com/languag...tion.html#6849 It states that PrimeQ does trial division with small primes (typical for performance), then M-R bases 2 and 3, then a Lucas test. M-R base 2 plus a proper Lucas test makes the BPSW test. Adding base 3 is either to add more certainty over just BPSW, or (the cynical view) to mask an improper Lucas test. It points out you need to use ProvablePrimeQ to get a proof. Last fiddled with by danaj on 2015-11-07 at 03:56 |
|
|
|
|
|
#97 | |
|
"Rashid Naimi"
Oct 2015
Remote to Here/There
3·5·137 Posts |
Quote:
Thank you again for your insight danaj. |
|
|
|
|
|
#98 |
|
"Rashid Naimi"
Oct 2015
Remote to Here/There
205510 Posts |
I tried the ProvablePrimeQ command it aborted after 1 minute. The online tool is still running with no end in sight.
My PARI/gp is not configured yet because of memory shortages on my desktop, but someone told me that the test took 8 minutes on a slow computer. Can someone please let me know if the 2947digit integer that I posted is prime or not. Thanks in advance. |
|
|
|
|
#99 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36×13 Posts |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is CEMPLLA 1.5 "the only software in the world capable of discovering" something? Not really. | CRGreathouse | Number Theory Discussion Group | 51 | 2018-12-16 21:55 |
| Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" | wildrabbitt | Miscellaneous Math | 11 | 2015-03-06 08:17 |
| "Subproject" #10: 200k-300k to 110 digits | RobertS | Aliquot Sequences | 9 | 2011-05-07 15:30 |
| Would Minimizing "iterations between results file" may reveal "is not prime" earlier? | nitai1999 | Software | 7 | 2004-08-26 18:12 |
| Search for a number theoretic function related to "prime divisor sums" | juergen | Math | 2 | 2004-07-10 23:01 |