I am trying to solve the following qualifying exam problem: “Give an example of a module over a PID that is not isomorphic to a direct sum of cyclic modules. Justify your example”. (Carnegie Mellon, 2022 Algebra Qual Q1)
My attempt: By the Structure Theorem of Finitely Generated Modules over PIDs, if $M$ is a finitely generated module over a PID $R$, then $$M \cong R^n \oplus R/p_1^{n_1} \oplus \dotsb \oplus R / p_k^{n_k} $$ where $n_1, \dotsc, n_k \ge 0$ and $p_1, \dotsc, p_k$ are primes in $R$. Thus, we are looking for a module $M$ over a PID $R$, which is not finitely generated. Can I just pick any module which is not finitely generated? Or should I be more careful about the choice?
Thanks in advance.