TITLE: Density of primes among the prime powers
QUESTION [6 upvotes]: What is the relative density of the prime numbers among the set of prime powers? In particular, let $\Pi(x)$ be the number of prime powers less than $x$ and let $\pi(x)$ be the number of primes less than $x$. What can be said of the limit
$$\lim_{x \to \infty} \frac{\pi(x)}{\Pi(x)}?$$
In other words, what is the density of prime powers which are square-free? My intuition says the answer should be $1$, but I'm not sure. -- in $\mathbb{Z}$, the square-free integers make up only $\frac{6}{\pi^2}$. On the other hand, in $\mathbb{F}_q[x]$, the square-free polynomials of degree $n$ are $1 + o_n(1)$.

REPLY [3 votes]: We can observe that if $p^{n}\leq x$ then $p\leq x^{1/n}$ so we can write $$\Pi\left(x\right)=\pi\left(x\right)+\pi\left(x^{1/2}\right)+\dots+\pi\left(x^{1/n}\right)
 $$ hence $$\Pi\left(x\right)=\pi\left(x\right)+O\left(\frac{\sqrt{x}}{\log\left(x\right)}\right).$$