next up previous contents index
Next: previousPrime Up: PrimeCollection Previous: maxPrime   Contents   Index


nextPrime


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


Signature


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

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


See Also



Manuel Bronstein 2000-12-13