What are the closed sets on $\mathbb{Z}$, $\mathbb{R}[x]$, $\mathbb{Z}[x]$? I was given this question, but it seems trivial, because aren't the closed sets only the affine varieties? So for each is just the irreducible varieties?
So I understand better, could you also give me an example of a set in one of those that is not closed? Would one be a line without the origin?
Edit: this is with regards to the spectrum of a ring R, defined to be V(S)=$\{P \in SpecR | S \subseteq P\}$ where P is a prime ideal. Then the collection $\{V(S)|S\subseteq R \}$ determines a topology on SpecR, the zariski topology. (If someone could explain why this is true, that would be great too!)
Since the rings you list are domains but not fields, in all three cases the set consisting of just the ideal $(0)$ is not closed in the Zariski topology.
For different examples you may consider:
a set consisting of infinitely, but not all, primes in $\Bbb Z$,
the set of ideals $(X-r)$ for all $r\in\Bbb R$ in $\Bbb R[X]$,
The set consisting of the single ideal $(X)$ in $\Bbb Z[X]$.