I'm working through Peter Stevenhagen's notes on Algebraic Number Theory, and the third section starts:
In order to factor an ideal $I$ in a number ring $R$ [into its primary composition $I = \prod_{\mathfrak p \supset I} I_{(\mathfrak p)}$], we have to determine for all prime ideals $\mathfrak p \supset I$ the $\mathfrak p$-primary part $I_{(\mathfrak p)}$ of $I$. As $I$ is of finite index in $R$, a prime $\mathfrak p$ of $R$ divides the integer $[R : I]$, hence a prime number $p$.
I don't see how the second sentence follows. Why does $\mathfrak p$ contain $[R : I]$?