TITLE: More `General' Chinese Remainder Theorem
QUESTION [6 upvotes]: I know of the Chinese Remainder Theorem, but I get the feeling it is only the `basic' version of it.
From the Chinese Remainder Theorem, we know that, for $m,\in\mathbb{Z}$ such that $\text{gcd}(m,n)=1$, $C_{mn}\cong C_{m}\times C_{n}$. Is it then true that $C_{p_{1}^{r_{1}}\ldots p_{n}^{r_{n}}}\cong C_{p_{1}^{r_{1}}}\times\ldots\times C_{p_{n}^{r_{n}}}$, where $p_{i}^{r_{i}}$s are (distinct) prime numbers?

REPLY [3 votes]: The other answers have already answered perfectly. 
For those who want an even more general version of the theorem, you can find it in Universal algebra : 
Let $A$ be an algebra, $\theta_0, \theta_1$ be two congruences on $A$ that are permutable (i.e. $\theta_0 \theta_1 = \theta_1\theta_0$), and such that $\theta_0\land \theta_1 = \Delta$, $\theta_0 \lor \theta_1 = \Omega$ ($\Delta= \{(a,a), a\in A\}, \Omega = \{(a,b), a,b\in A\}$). 
Then $A \simeq A/\theta_0 \times A/\theta_1$. 
The obvious morphism is well-defined because they are congruences, it is surjective because of the last condition and because they are permutable (because then, $\theta_0\lor\theta_1 = \theta_0\theta_1$), and it is injective because their g.l.b. is $\Delta$