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}.

  1. Prove that N is an ideal of R.
  2. Prove that N is contained in the intersection of all prime ideals of R.