The nilradical of a ring

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