primeint - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


type/prime

check for a prime integer

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, prime)

Parameters

expr

-

expression

Description

• 

This command returns true if expr is a prime integer, and false otherwise.

• 

The isprime command is used to check the primality of expr, once expr has been determined to be an integer.

Examples

type1,prime

false

(1)

type2,prime

true

(2)

type3,prime

false

(3)

type17,prime

true

(4)

type21,prime

false

(5)

type225+1,prime

false

(6)

typex2+1,prime

false

(7)

See Also

isprime

type

type/integer