Notation: $k$ is an algebraically closed field. By a variety I mean a separated ringed space $(X,O_X)$ that is locally isomorphic to $(Z,\mathcal O_Z)$ where $Z\subseteq\mathbb A^n_k$ is a closed Zariski subset and $\mathcal O_U$ is the structural sheaf of regular functions.
Let $(X,\mathcal O_X)$ be an irreducible variety; I've found two definitions for a prime divisor of $X$:
- It is a closed irreducible subvariety $Y$ of codimension $1$.
- It is an irreducible subvariety $Y$ of codimension $1$.
Which of them do you prefer? why?
Thanks in advance.