$a= x^3 - 3x^2+3x-2$
$\Leftrightarrow a=x.(x^2+3)-(3x^2+2)$
$\Leftrightarrow a=x.(x^2+3) - 3(x^2+3) +7$
$\Leftrightarrow a=(x^2+3).(x-3)+7$
Để $a$ là số nguyên tố thì $a:$
$\Leftrightarrow \left[ \begin{array}{l}a\ge2\\\text{a chia hết cho 1, chính nó} \end{array} \right.$
$\Leftrightarrow (x^2+3).(x-3)=0$
$\Leftrightarrow \left[ \begin{array}{l}x-3=0\\x^2+3=0(ktm) \end{array} \right.$
Vậy $x=3$