I have a question regarding First Order Logic. I have to express the property "x is a Prime" in First Order logic. So far I have the following solution:
$\forall x\;Prime(x) \leftrightarrow \neg \exists y, z \;y \times z = x \land (y > 1 \land z > 1)$
I think that it is right but I am not 100% sure. My reason for putting a bidirectional there is that
$\forall x\;\neg \exists y,z\;y \times z = x \land (y > 1 \land z > 1) \to Prime(x)$
is also true. But it feels weird as we mostly use $\to$ with a universal quantifier.
Same goes for the formula:
$\forall x\;Even(x) \leftrightarrow \exists y\;y + y = x$ (x is even)
EDIT
After thinking a lot about it again and taking into account the comments below, I came up with this:
PROBABLY RIGHT:
$\forall x\; Prime(x) \leftrightarrow x \neq 0 \land x \neq 1 \land \neg \exists y, z [(y \times z = x) \land y \neq x \land z \neq x]$ P.S.