Let $A$ be a principal ideal domain and let $K$ be its field of fractions. I proved
a) Every ring $B$ such that $A \subset B \subset K$ is a ring of fractions of $A$,
and
c) Show that any ring of fractions of $A$ is principal.
But I'm having trouble with
b) Classify the rings of fractions of $A$.
The hint given is to consider the prime elements of $A$ which are invertible in $S^{-1}A$. However, it still isn't clear what sort of classification the author expects, and how to use the hint. Help would be much appreciated.