aboutsummaryrefslogtreecommitdiffstats
path: root/doc/exercises.tex
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-25 01:33:10 +0200
committerMattias Andrée <maandree@kth.se>2016-07-25 01:33:10 +0200
commit63bc4e141d2f28fcd11187413966235151a92c84 (patch)
treebc8f959ea4b2b99d5a137741b014c3fa46232123 /doc/exercises.tex
parentAdd exercise: [20] Fast primality test with bounded perfection (diff)
downloadlibzahl-63bc4e141d2f28fcd11187413966235151a92c84.tar.gz
libzahl-63bc4e141d2f28fcd11187413966235151a92c84.tar.bz2
libzahl-63bc4e141d2f28fcd11187413966235151a92c84.tar.xz
Alternative solution for [20] Fast primality test with bounded perfection
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--doc/exercises.tex9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/exercises.tex b/doc/exercises.tex
index 7f9d7c8..cebff1c 100644
--- a/doc/exercises.tex
+++ b/doc/exercises.tex
@@ -467,6 +467,15 @@ For input, larger than our limit, that passes the test,
we can run it through \texttt{zptest} to reduce the
number of false positives.
+As an alternative solution, instead of comparing against
+known pseudoprimes. Find a minimal set of primes that
+includes divisors for all known pseudoprimes, and do
+trail division with these primes when a number passes
+the test. No pseudoprime need to have more than one divisor
+included in the set, so this set cannot be larger than
+the set of pseudoprimes.
+
+
\end{enumerate}