type/prime - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/prime

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

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam