x2-4x-21=0
=> (x-2)2=25
=> x-2=-5,5
=> x=-3,7
Mà x là số nguyên tố
=> x=7
\(x^2-4x-21=0\)
\(\Rightarrow x^2+3x-7x+21=0\)
\(\Rightarrow x\left(x+3\right)-7\left(x+3\right)=0\)
\(\Rightarrow\left(x+3\right)\left(x+7\right)=0\)
\(\Rightarrow\orbr{\begin{cases}x+3=0\\x-7=0\end{cases}}\)
\(\Rightarrow\orbr{\begin{cases}x=-3\\x=7\end{cases}}\)