I am trying to calculate $\text{Hom}_{\text{cts}}(\hat{\mathbb{Z}},\mathbb{Z})$ (i.e., continuous group homomorphisms from $\hat{\mathbb{Z}}$ to $\mathbb{Z}$, viewed as topological groups in the usual way).
I know that $\hat{\mathbb{Z}} \simeq \prod_p \mathbb{Z}_p$, and I know how to write $\hat{\mathbb{Z}}$ as an inverse limit, but as far as I know $\text{Hom}(-,B)$ preserves neither of these operations in general.