numtheory(deprecated)
safeprime
compute a safe prime
Calling Sequence
Parameters
Description
Examples
safeprime(n)
n
-
integer
Important: The numtheory package has been deprecated. Use the superseding command NumberTheory[NextSafePrime] instead.
The function safeprime will compute the smallest safe prime that is greater than n. A safe prime is a number p such that p is prime and p−12 is prime.
The command with(numtheory,safeprime) allows the use of the abbreviated form of this command.
with⁡numtheory:
safeprime⁡8
11
safeprime⁡12
23
See Also
nextprime
NumberTheory[NextSafePrime]
Download Help Document