This is problem 2.25(ii) from Rotman's Homological Algebra Text.
1. Problem
Let $p$ be a prime, $B_n$ be a cycle group of order $p^n$, and $A = \bigoplus_{n=1}^\infty B_n$. Show that $$ \mathcal S := Hom_\mathbb Z(A, A) \ncong \bigoplus Hom_\mathbb Z(A, B_n) =: \mathcal T $$
Hint: $\mathcal S$ has an element of infinite order while $\mathcal T$ has elements of only finite order.
2. Partial Proof
For $\mathcal S$, note that $1_A$ has the desired property because for each $n \in \mathbb N$ there exists an $a \in A$ such that $p^n 1_A(a) = p^n a \ne 0$.
Update
See my attempted answer.