PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Number Theoretic Functions
>
Built-in
Mathematica
Symbol
Integer and Number Theoretic Functions
Tutorials »
|
PrimeQ
FactorInteger
SquareFreeQ
MoebiusMu
See Also »
|
Number Recognition
Number Theoretic Functions
New in 6.0: Number Theory & Integer Functions
More About »
PrimePowerQ
PrimePowerQ
[
expr
]
yields
True
if
expr
is a power of a prime number, and yields
False
otherwise.
MORE INFORMATION
PrimePowerQ
[1]
gives
False
.
PrimePowerQ
[
n
,
GaussianIntegers
->
True
]
determines whether
n
is a Gaussian prime power.
PrimePowerQ
[
m
+
I
n
]
automatically works over the Gaussian integers.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Test whether a number is a power of a prime number:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Scope
(4)
Generalizations & Extensions
(1)
Options
(1)
Applications
(4)
Properties & Relations
(3)
Neat Examples
(1)
SEE ALSO
PrimeQ
FactorInteger
SquareFreeQ
MoebiusMu
TUTORIALS
Integer and Number Theoretic Functions
MORE ABOUT
Number Recognition
Number Theoretic Functions
New in 6.0: Number Theory & Integer Functions
New in 6
© 2008 Wolfram Research, Inc.