next up previous contents index
Next: primRoot Up: PrimeCollection Previous: nextPrime   Contents   Index


previousPrime


\begin{usage}
previousPrime~n
\end{usage}


Signature


\begin{params}
{\em n} & \htmlref{\texttt{MachineInteger}}{MachineInteger} & An integer\\
\end{params}

\begin{retval}
Returns the largest prime $p$\ in the collection with $n > p$,
$0$\ if there are none.
\end{retval}


See Also



Manuel Bronstein 2000-12-13