In Hilton's A Course in Homological Algebra Page 18. $\Lambda$ is a ring with unit which is not necessarily commutative. Here is exercise 2.7:
Exe 2.7: $A,A',A''$ denote abelian groups and $Z_{m}$ denote the integers module m. Then $0\to A'\to A\to A''\to0$ is pure if and only if $Hom(Z_{m},-)$ preserves exactness for every m>0.
Recall that a short exact sequence $0\to A'\stackrel{\mu}{\longrightarrow} A\stackrel{\epsilon}{\longrightarrow} A''\to0$ is pure if $\mu(a')=ma$ for $a'\in A'$, $a\in A$ and m a positive integer implies the existence of $b'\in A'$ such that $a'=mb'$ with the same m.
I am confused that the statement $Hom(Z_{m},-)$ preserves exactness means the sequence $0\to Hom(Z_{m},A')\to Hom(Z_{m},A)\to Hom(Z_{m},A'')$ is exact or the sequence $0\to Hom(Z_{m},A')\to Hom(Z_{m},A)\to Hom(Z_{m},A'')\to 0$ is exact. In either case I can't figure out how to prove it. Please give me some hint and thanks!!!

The second sequence must be exact, as the first is always exact. To prove the assertion, you can use Exercise 1.7(iii) of loc. cit.
Indeed, it suffices to show that for every morphism $f\colon\mathbb{Z}_m\to A''$ of abelian groups there exists a morphism $g\colon\mathbb{Z}_m\to A$ of abelian groups such that $\epsilon g=f$. But $f$ is determined by $a''=f(1)$ which satisfies $ma''=0$. By Exercise 1.7(iii) you can lift $a''$, i.e. there exists an $a\in A$ with $\epsilon(a)=a''$ and $ma=0$. You determine $g$ by $g(1)=a$ and we have $\epsilon g=f$ as desired.
The other implication follows along the same lines.