I want to prove that
If $A$ is an abelian group such that $$\operatorname{Hom}(A,\mathbb{Q})=0$$ and, $$\text{Ext}(A,\mathbb{Z}_p)=\text{Hom}(A,\mathbb{Z}_p)=0 \text{ for every prime } p$$ then $A=0$.
I want to follow the reasoning in the response of
and to do that I have to show that $\text{Hom}(A,\mathbb{Z})=0$ and $\text{Ext}(A,\mathbb{Z})=0$.
I have not been able to do such a thing. But from the exact sequences of $\text{Ext}$ it is easy to deduce that $\text{Hom}(A,\mathbb{Z})=0$ and that $\text{Ext}(A,\mathbb{Z})$ is a torsionfree divisibility group. From this two conclusions it is possible to deduce that $A$ is a torsionfree divisibility group but I could not reach $A=0$.
Any advice?
PD: This problem appears in Hatcher in a more topological way.