# Characteristic of a field is $0$ or prime

I'm trying to prove that the characteristic of any field $F$ is either $0$ or a prime number, but I have no idea what to do. Help?

-
Hint: Show that if the characteristic of $F$ were a composite number, say $n=ab$, then $F$ would have zero-divisors (since $n=0$...). Then show that a zero-divisor cannot be a unit unless $0=1$, which is not the case for fields.
Alternate Hint: Look at the unique homomorphism $\phi:\mathbb{Z}\to F$, defined by $\phi(0)=0_F$, $\phi(1)=1_F$, $\phi(2)=1_F+1_F$, etc. and note that its image, being a subring of a field, must be an integral domain.