PrimePowerQ

PrimePowerQ[expr]

yields True if expr is a power of a prime number, and yields False otherwise.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Test whether a number is a power of a prime number:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Generalizations & Extensions  (1)

Options  (1)

Applications  (4)

Properties & Relations  (3)

Neat Examples  (2)

See Also

PrimeQ  FactorInteger  SquareFreeQ  MoebiusMu  PrimeOmega

Tutorials

Introduced in 2007
(6.0)