If $N(\alpha)=p$ then $(p) \subset (\alpha)$ as $\alpha \overline{\alpha} = p \subset ( p )$. Also, every element on $(p)$ can be written as a product $\beta p$, and $
N(\beta p)=N(\beta)N(p) = N( \beta ) p^{2}$, so $\alpha \notin (p)$ and the inclusion $(p) \subset (\alpha)$ is proper.
I will use the third isomorphism theorem for groups.
\begin{equation*}
\dfrac{\mathbb{Z}[w]}{(\alpha)} \cong \dfrac{\dfrac{\mathbb{Z}[w]}{(p)}}{ \dfrac{(\alpha)}{(p)} }
\end{equation*}
As abelian groups:
$$
\dfrac{\mathbb{Z}[w]}{(p)} = \dfrac{ \mathbb{Z} \oplus \mathbb{Z} \omega } {p \mathbb{Z} \oplus p \mathbb{Z} \omega } \cong \dfrac{\mathbb{Z}}{ p \mathbb{Z} } \oplus \dfrac{\mathbb{Z} \omega}{ p \mathbb{Z} \omega } \cong \dfrac{ \mathbb{Z} }{ p \mathbb{Z} } \oplus \dfrac{ \mathbb{Z} }{ p \mathbb{Z} }
$$
So $\dfrac{\mathbb{Z}[w]}{(p)}$ is an abelian group of order $p^{2}$. Also $(\alpha) \subset (p)$ is a proper contention, that is $(\alpha) \neq (p)$. So $\dfrac{\alpha}{(p)}$ has order larger than $1$. As
\begin{equation*}
1 < \left| \dfrac{\mathbb{Z}[w]}{(\alpha)} \right| \cong \dfrac{\left| \dfrac{\mathbb{Z}[w]}{(p)} \right| }{ \left|\dfrac{(\alpha)}{(p)} \right|} < \left| \dfrac{\mathbb{Z}[w]}{(p)} \right| = p^{2}
\end{equation*}
(The $1<$ is because $\dfrac{\mathbb{Z}[w]}{(\alpha)}$ isn't the trivial group)
As $\left| \dfrac{\mathbb{Z}[w]}{(\alpha)} \right|$ divides $\left| \dfrac{\mathbb{Z}[w]}{(p)} \right|=p^{2}$, under these restriction it can only be $\left| \dfrac{\mathbb{Z}[w]}{(\alpha)} \right| = p$ as the other divisors of $p^{2}$ are $1$ and $p^{2}$ and we already ruled out those possilibities. Thus the abelian group structure of $\dfrac{\mathbb{Z}[w]}{(\alpha)}$ is $\mathbb{Z} / p \mathbb{Z}$. The only ring with unity of $p$ elements is $\mathbb{F}_{p}$, and as out quotient has unity, it must be isomorphic to $\mathbb{F}_{p}$. Thus our ring structure is $\dfrac{\mathbb{Z}[w]}{(\alpha)} \cong \mathbb{F}_{p}$, and as it's a field, $(\alpha)$ is maximal, thus a prime ideal.
Therefore, $p$ is prime.
PD: My professor meant irreducibles when he wrote the exercise. But this one was a very nice exercise and it motivated me to study a lot, so I liked it.