Talk:Primality by trial division

From Rosetta Code
Revision as of 20:21, 4 February 2008 by rosettacode>Sgeier (New page: == "simplest"? == The task states "Implement the simplest primality test, using trial division." I'd like to submit that any such statement is always inappropriate at this wiki, as it pre...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

"simplest"?

The task states "Implement the simplest primality test, using trial division." I'd like to submit that any such statement is always inappropriate at this wiki, as it presumes knowledge what method of solving some task is "the simplest" in all conceivable languages. There may well be languages where some other method might be "simpler", especially given that "simple" is not exactly a particularly well-defined term. In particular in the sense of complexity defined through the computational resources required to express the result, a Miller-test might well be "simpler" than trial-factoring.