mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > FactorDB

Reply
 
Thread Tools
Old 2014-01-09, 17:33   #12
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2×1,039 Posts
Default

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
chris2be8 is offline   Reply With Quote
Old 2014-01-09, 17:45   #13
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
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).
No, No, No! If this were possible, it would be a very fast factoring
algorithm! Just pass a composite to the code, bypass the
PRP tests, and have it factored!
R.D. Silverman is offline   Reply With Quote
Old 2014-01-09, 20:18   #14
f1pokerspeed
 
Jun 2012

11010102 Posts
Default

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.
f1pokerspeed is offline   Reply With Quote
Old 2014-01-09, 21:06   #15
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by f1pokerspeed View Post
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.
They are different.
R.D. Silverman is offline   Reply With Quote
Reply



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

All times are UTC. The time now is 12:20.


Sat Jul 17 12:20:32 UTC 2021 up 50 days, 10:07, 1 user, load averages: 1.30, 1.41, 1.39

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.