From 0545e74aeab679ff67e95b62f788a79d6a31f222 Mon Sep 17 00:00:00 2001 From: Paul Jungeblut Date: Sun, 14 Feb 2016 00:36:49 +0100 Subject: Adding Jojo's Miller-Rabin code to the document and improving prime sieve. --- math/math.tex | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'math/math.tex') diff --git a/math/math.tex b/math/math.tex index acc85f6..7093f78 100644 --- a/math/math.tex +++ b/math/math.tex @@ -17,16 +17,19 @@ Sei $0 \leq x < n$. Definiere $d := gcd(x, n)$. \end{description} \lstinputlisting{math/multInv.cpp} -\subsection{Primzahlsieb von Eratosthenes} +\subsection{Primzahlsieb von \textsc{Eratosthenes}} \lstinputlisting{math/primeSieve.cpp} -\subsubsection{Faktorisierung} +\subsection{\textsc{Miller}-\textsc{Rabin}-Primzahltest} +\lstinputlisting{math/millerRabin.cpp} + +\subsection{Faktorisierung} \lstinputlisting{math/factor.cpp} -\subsubsection{Mod-Exponent über $\mathbb{F}_p$} +\subsection{Mod-Exponent über $\mathbb{F}_p$} \lstinputlisting{math/modExp.cpp} -\subsubsection{LGS über $\mathbb{F}_p$} +\subsection{LGS über $\mathbb{F}_p$} \lstinputlisting{math/lgsFp.cpp} \subsection{Binomialkoeffizienten} -- cgit v1.2.3