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.
Hint $\ $ The overring is uniquely determined by the set of elements inverted, which is uniquely determined by the set of primes inverted. This yields a bijection between such overrings and subsets of primes of $A$.
In further detail, the set $\,S\subset A\,$ of elements that become units (invertibles) in the overring is a saturated monoid $\,S,\,$ i.e. $\,ab\in S\iff a,b\in S.\,$ One easily checks that such monoids are characterized (generated) by their prime elements, using the fact that $A$ is a PID so a UFD, so every element is $\,S\,$ has a (unique) prime factorization.