The nilradical of a ring

Let R be a commutative ring. The nilradical of R is defined to be N={r∈R|rn=0 for some n∈N}.
(a) Prove that N is an ideal of R.
(b) Prove that N is contained in the intersection of all prime ideals of R.