![]() |
|
|
#12 |
|
Sep 2009
2·1,039 Posts |
You could patch the program to bypass the PRP tests and always do the trial division. That would test the code reports a number is composite if divisible by one of the trial divisors (given a suitable test case). And you could make it print how many trial divisors it calculated (and list them if not too many). But this would NOT prove the trial divisors were always calculated correctly.
I've done similar things to check "impossible" conditions would in fact be reported. But those conditions were easy to test for. Or you could be paranoid and run both APR-CL and ECPP against the number. Chris |
|
|
|
|
|
#13 | |
|
Nov 2003
22·5·373 Posts |
Quote:
algorithm! Just pass a composite to the code, bypass the PRP tests, and have it factored! |
|
|
|
|
|
|
#14 |
|
Jun 2012
2·53 Posts |
Are these trial divisors different for every number, or are they the same? If the latter is true, you could possibly compute and verify known divisors and store them in a file, to ensure that any issues w.r.t programming error are removed. That would be a step forwards towards a trusted implementation.
|
|
|
|
|
|
#15 | |
|
Nov 2003
164448 Posts |
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prime numbers test primality - with proof written in invisible ink | Godzilla | Miscellaneous Math | 40 | 2018-10-17 00:11 |
| 500€ Reward for a proof for the Wagstaff primality test conjecture | Tony Reix | Wagstaff PRP Search | 7 | 2013-10-10 01:23 |
| Proof of Primality Test for Fermat Numbers | princeps | Math | 15 | 2012-04-02 21:49 |
| Primality searches and primality successes | marco_calabresi | Information & Answers | 3 | 2009-04-17 19:44 |
| PRIMALITY PROOF for Wagstaff numbers! | AntonVrba | Math | 96 | 2009-02-25 10:37 |