TOPICS
Search

Prime Power


A prime power is a positive integer of the form p^k, where p is a prime number and k is a positive integer. In the Wolfram Language, PrimePowerQ[n] tests whether an integer n is a prime power.

The first few prime powers are 2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19, 23, 25, ... (OEIS A246655). Those with exponents at least 2 begin 4, 8, 9, 16, 25, 27, 32, 49, 64, 81, ... (OEIS A246547). For x>=4, let Q(x) count these prime powers with value at most x. Then

 Q(x)=sum_(k=2)^(|_lnx/ln2_|)pi(x^(1/k))<=sum_(k=2)^(|_lnx/ln2_|)x^(1/k)=O(x^(1/2)lnx),

where pi(x) is the prime counting function and |_y_| is the floor function (Hardy 1999, p. 27).

The following table gives prime kth powers.

kOEISprime kth powers
1A0000402, 3, 5, 7, 11, 13, 17, 19, 23, ...
2A0012484, 9, 25, 49, 121, 169, 289, 361, ...
3A0300788, 27, 125, 343, 1331, 2197, 4913, ...
4A03051416, 81, 625, 2401, 14641, 28561, 83521, ...
5A05099732, 243, 3125, 16807, 161051, 371293, ...

See also

Odd Prime Power, Prime Number, Solitary Number

Explore with Wolfram|Alpha

References

Hardy, G. H. Ramanujan: Twelve Lectures on Subjects Suggested by His Life and Work, 3rd ed. New York: Chelsea, 1999.Sloane, N. J. A. Sequences A000040/M0652, A246655, A001248, A246547, A030078, A030514, and A050997 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Prime Power

Cite this as:

Weisstein, Eric W. "Prime Power." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PrimePower.html

Subject classifications