If
$$ A \subset \Bbb{Z} $$
is such that $xy \in A \implies x \in A, $ or $y \in A$. Then $A$ is either a prime ideal or ?
Can we describe all "prime subsets" of $\Bbb{Z}$ that aren't prime ideals in one fell swoop?
It's not just a subset closed under taking divisors, though those are counted, and so it's also not just a subset of negative prime numbers together with $\{0, -1\}$ either.
Notice that the implication $$ xy \in A \implies \big( x \in A \text{ or } y \in A \big) $$ is equivalent to its contrapositive $$ \big( x \notin A \text{ and } y \notin A \big) \implies xy \notin A. $$ In other words, $A$ has the given property if and only if $\Bbb Z\setminus A$ is closed under multiplication.
In particular, there is a wide variety of examples of such sets $A$, such as: