I want to find the no. of elements $\alpha \in \mathbb{F}_{3^5}$ so that $\mathbb{F}_{3}(\alpha) = \mathbb{F}_{3^5}$(minimal polynomial of $\alpha$ is of degree 5). I know such things do exist but how to count them?
I need to basically know how man irreducible factors of $x^{3^5}-x$ are of degree $5$ (over $\mathbb{F}_{3}$).
By ad hoc method I am getting for $\mathbb{F}_{2^4}$ the answer is $12$ since the minimal polynomial can only have irreducible polynomials whose degree divides $4$ and so there are 3 degree $4$ and $1$ degree 2(other combinations dont work due to size of $\mathbb{F}_{4}$).
Given any element $a\in\mathbb F_{p^n}\setminus \mathbb F_p$ whose degree over $\mathbb F_p$ is $d>1$, we have $\mathbb F_{p^n}$ is a vector space over $\mathbb F[a]$, hence $|\mathbb F_{p^n}|=|\mathbb F[a]|^m=p^{dm}\Rightarrow n=dm$ for some natural number $m$.
When $n$ is a prime number (such as $5$ in your case), there must be $d=n$ as $d|n$ and $d>1$. That is, there is no intermediate field between $\mathbb F_p$ and $\mathbb F_{p^n}$. In particular, the number of elements with degree $n$ is exactly $p^n-p$.
When $n$ is not a prime number, we need to use a more complicated analysis related to the factorization of $n$.