type/primepower
check for a rational prime power
Calling Sequence
Parameters
Description
Examples
Compatibility
type( expr, primepower )
expr
-
any Maple expression
The type( expr, 'primepower' ) command returns true if expr is of type primepower, and false otherwise.
An expression is of type primepower if it is a positive integer of the form p^k, for some prime number p and some non-negative integer k.
Note that the number 1 is a prime power, as is each prime number.
type⁡0,primepower
false
type⁡1,primepower
true
type⁡4,primepower
type⁡−8,primepower
type⁡6,primepower
type⁡23,primepower
type⁡30303030303031106,primepower
type⁡30303030303031⋅30303030303043106,primepower
type⁡5104⁢nextprime⁡104,primepower
The type/primepower command was updated in Maple 2020.
See Also
integer
iperfpow
type
type/prime
Download Help Document