If $R$ is a ring, $I$ an ideal of $R$, and $S$ a multiplicatively closed subset of $R$.
We know that if $a \in I$ then $\frac{a}{s} \in S^{-1}I$. But the converse isn't true always. If $\frac{a}{s} \in S^{-1}P$ then $a \in P$ if $P$ is a prime ideal and $P \cap S= \emptyset$.
My question is that, if we know that $I \cap S= \emptyset$, is there another property that we can have on the ideal $I$ so that this statement $\frac{a}{s} \in S^{-1}I \implies a \in I$ is true? (I mean other than $I$ being prime.)
If $q$ is primary and $S \cap q=\varnothing$ then, $\frac{a}{s} \in S^{-1}q \implies a \in q$