ameralhajj
why is it wrong to simplify the second statement to 2*x since the sq.root and the square cancel each other? If i do that then for the second statement to be true, only when x=1 will the result be a prime.

Because \(\sqrt{x^2}=|x|\), not x. Try plugging in a negative numbers to check.
Why does \(\sqrt{x^2}=|x|\)?
The point here is that
square root function cannot give negative result: wich means that \(\sqrt{some \ expression}\geq{0}\).
So \(\sqrt{x^2}\geq{0}\). But what does \(\sqrt{x^2}\) equal to?
Let's consider following examples:
If \(x=5\) --> \(\sqrt{x^2}=\sqrt{25}=5=x=positive\);
If \(x=-5\) --> \(\sqrt{x^2}=\sqrt{25}=5=-x=positive\).
So we got that:
\(\sqrt{x^2}=x\), if \(x\geq{0}\);
\(\sqrt{x^2}=-x\), if \(x<0\).
What function does exactly the same thing? The absolute value function! That is why \(\sqrt{x^2}=|x|\)