type/prime
check for a prime integer
Calling Sequence
Parameters
Description
Examples
type(expr, prime)
expr
-
expression
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.
type⁡1,prime
false
type⁡2,prime
true
type⁡−3,prime
type⁡17,prime
type⁡21,prime
type⁡225+1,prime
type⁡x2+1,prime
See Also
isprime
type
type/integer
Download Help Document