type/primepower - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : type/primepower

type/primepower

check for a rational prime power

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

type( expr, primepower )

Parameters

expr

-

any Maple expression

Description

• 

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.

Examples

type0,primepower

false

(1)

type1,primepower

true

(2)

type4,primepower

true

(3)

type8,primepower

false

(4)

type6,primepower

false

(5)

type23,primepower

false

(6)

type30303030303031106,primepower

true

(7)

type3030303030303130303030303043106,primepower

false

(8)

Compatibility

• 

The type/primepower command was updated in Maple 2020.

See Also

integer

type

type/prime