As homework, I need to find all the prime ideals of $\mathbb Z[\frac 1n]$.
For starters, I needed to prove that given any two rational numbers $q_1,q_2$, there exists a natural number satisfying $\mathbb Z[q_1,q_2]=\mathbb Z[\frac 1n]$. I did this by writing $q_i=\frac{a_i}{b_i}$ and taking $n=b_1b_2$. Unfortunately, I don't really see how this helps me find all the primes ideals at all.