An element of ring $e$ is called idempotent iff $e^2=e$.
Let $R$ be a commutative ring that contains the identity element and a non-trivial idempotent element.
I want to show that each of its prime ideals contain also an idempotent element.
We have that $P$ is a prime ideal of $R$ iff $\forall a,b\in R$ : $a\cdot b\in P\Rightarrow a\in P \text{ or } b\in P$.
We have that $1\in R$ and $e^2=e\in R$.
So, $1\cdot e^2\in P \Rightarrow e^2\in P$, since $1\notin P$.
Since $e^2=e$, we also have that $e\in P$.
Does this imply that $e^2=e\in P$ ?
You can't assume $e^{2}$ $\in$ $P$. However $0$ $\in P$ and since $e^{2}-e=0$ $\in$ $P$, we have either $e$ $\in$ $P$ or $e-1$ $\in$ $P$. In either case we are done (why?).