numtheory(deprecated)/safeprime - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : numtheory(deprecated)/safeprime

numtheory(deprecated)

  

safeprime

  

compute a safe prime

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

safeprime(n)

Parameters

n

-

integer

Description

• 

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 p12 is prime.

• 

The command with(numtheory,safeprime) allows the use of the abbreviated form of this command.

Examples

Important: The numtheory package has been deprecated.  Use the superseding command NumberTheory[NextSafePrime] instead.

withnumtheory:

safeprime8

11

(1)

safeprime12

23

(2)

See Also

nextprime

NumberTheory[NextSafePrime]

numtheory(deprecated)