type/prime - check for a prime integer
|
Calling Sequence
|
|
type(expr, prime)
|
|
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
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
|
|
Download Help Document
Was this information helpful?