Close
Close window
numtheory(deprecated)/safeprime - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : numtheory(deprecated)/safeprime
[フレーム] [フレーム]

numtheory(deprecated)

safeprime

compute a safe prime

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)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /