Below is a (nonconstructive) more conceptual structural view (vs. the common constructive proof using geometric series - which also can be presented more conceptually via simpler multiples).
Hint $ $ A nilpotent $\rm\,n\,$ lies in every prime ideal $\rm\,P,\,$ by $\rm\, n^k = 0\in P\ \Rightarrow\ n\in P.\,$ In particular, this implies $\rm\,n\,$ lies in every maximal ideal. Hence $\rm\,n\!+\!1\,$ is a unit, since it lies in no maximal ideal $\rm\,M\,$ (else $\rm\,n\!+\!1,\,n\in M\, \Rightarrow\, (n\!+\!1)-n = 1\in M),\,$ i.e. elements coprime to every prime are units.
You may recognize this idea in modern proofs of Euclid's theorem that there are infinitely many primes. Namely, if there are only finitely many primes then their product $\rm\,n\,$ is divisible by every prime, so $\rm\,n\!+\!1\,$ is coprime to all primes, so it must be the unit $1,\,$ contradiction.
Remark $ $ You'll meet related results later when you study the structure theory of rings. There the intersection of all maximal ideals of a ring $\rm\,R\,$ is known as the Jacobson radical $\rm\,Jac(R).\,$ The ideals $\rm\,J\,$ with $\rm\,1+J \subset U(R)= $ units of $\rm R,\,$ are precisely those ideals contained in $\rm\,Jac(R).\,$ Indeed, we have the following theorem, excerpted from my post on the fewunit ring theoretic generalization of Euclid's proof of infinitely many primes.
Theorem $\ $ TFAE in ring $\rm\,R\,$ with units $\rm\,U,\,$ ideal $\rm\,J,\,$ and Jacobson radical $\rm\,Jac(R).$
$\rm(1)\quad J \subseteq Jac(R),\quad $ i.e. $\rm\,J\,$ lies in every max ideal $\rm\,M\,$ of $\rm\,R.$
$\rm(2)\quad 1+J \subseteq U,\quad\ $ i.e. $\rm\, 1 + j\,$ is a unit for every $\rm\, j \in J.$
$\rm(3)\quad I\neq 1\ \Rightarrow\ I+J \neq 1,\qquad $ i.e. proper ideals survive in $\rm\,R/J.$
$\rm(4)\quad M\,$ max $\rm\,\Rightarrow M+J \ne 1,\quad $ i.e. max ideals survive in $\rm\,R/J.$
Proof $\, $ (sketch) $\ $ With $\rm\,i \in I,\ j \in J,\,$ and max ideal $\rm\,M,$
$\rm(1\Rightarrow 2)\quad j \in all\ M\ \Rightarrow\ 1+j \in no\ M\ \Rightarrow\ 1+j\,$ unit.
$\rm(2\Rightarrow 3)\quad i+j = 1\ \Rightarrow\ 1-j = i\,$ unit $\rm\,\Rightarrow I = 1.$
$\rm(3\Rightarrow 4)\ \,$ Let $\rm\,I = M\,$ max.
$\rm(4\Rightarrow 1)\quad M+J \ne 1 \Rightarrow\ J \subseteq M\,$ by $\rm\,M\,$ max.