Loading…

Prime Power Tester

Math Algebra • Numbers

View all topics

Check whether a positive integer is a prime power. A number is a prime power when it can be written as one prime base raised to a positive integer exponent.

Prime power: n = p^k Base: p must be prime Exponent: k ≥ 1 Example: 81 = 3^4

Number input

Supported range: \(1\le n\le 10^9\). A prime number counts as a prime power because \(p=p^1\). The number \(1\) is not a prime power under this definition.

Quick examples

Ready
Enter a positive integer, then click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is a prime power?

A prime power is a positive integer that can be written as n = p^k where p is prime and k is an integer with k >= 1.

Is 81 a prime power?

Yes. 81 = 3^4, so the prime base is 3 and the exponent is 4.

Is every prime number a prime power?

Yes. Every prime p is a prime power because p = p^1.

Is 1 a prime power?

No. Under this definition, 1 is not a prime power because there is no prime p and exponent k >= 1 such that 1 = p^k.

How does prime factorization decide whether n is a prime power?

The number is a prime power exactly when its prime factorization contains only one distinct prime factor.

Why is 72 not a prime power?

72 = 2^3 × 3^2. Because it has two distinct prime factors, 2 and 3, it cannot be written as p^k for one prime p.

Can a perfect square fail to be a prime power?

Yes. For example, 36 = 2^2 × 3^2, so it is a square but not a prime power.

What are p and k in n = p^k?

The value p is the prime base, and k is the exponent showing how many times that prime appears in the factorization.

What does exponent k = 1 mean?

It means the number itself is prime, so n = n^1.

Why does the graph show prime base p and exponent k?

The graph shows whether the factorization has one prime base with one exponent or multiple prime bases, which decides the prime-power classification.