There's a question in Gallian: Suppose that $R$ is a commutative ring with no zero divisors. Characteristic of $R$ is $0$ or prime. I am wondering what could be the role of $R$ given as being commutative.
Attempt: The characteristic of a ring is either $0$ or finite. If it's $0$, we are done.
If it's not zero, then $\exists~ n\in N$ such that $(n \cdot x) = 0 ~~\forall~~x \in R$
If $n$ is composite, then $n=s \cdot t \implies (s \cdot t)~ x =0 \implies (s \cdot x) (t \cdot x) =0 \implies (s \cdot x)=0 $ or $(t \cdot x)=0$
[ .... This is because if $m$ and $n$ are integers and $a$ and $b$ elements from a ring, then :
$(m \cdot a)(n \cdot b)=(mn) \cdot (ab)$ . It doesn't need that R be commutative as :
$(m \cdot a) ( n \cdot b) = (a + a + .... + a) \{m ~~times~~\} (b + b + ....+ b) \{n~~ times~~\} = ab + ab + .... + ab ~~\{mn ~~times~~\} $
$ = (mn) \cdot (ab) $ ..... ]
Since, $n$ as per definition is the least integer satisfying $n \cdot x=0~\forall~x \in R$ . Hence, $n$ must be prime or $0$.
All the above also applies to a non commutative ring, Why was commutative ring specifically mentioned in the question? Thanks .
Let's see how far we get without assuming commutativity.
First, for every $x\in R\setminus\{0\}$, there is an ideal $A_x \subset \mathbb{Z}$ such that $n\cdot x = 0 \iff n\in A_x$. Let $a_x$ be the non-negative generator of $A_x$.
Then, since $R$ has no zero divisors, for every $x\in R\setminus\{0\}$, $a_x$ is either $0$ or a prime. For suppose $a_x = m\cdot n$ with $m,n > 1$. Then $mx\neq 0$ and $nx\neq 0$, whence $0 \neq (mx)(nx) = ((mn)x)x$, and therefore $0 \neq (mn)x = a_x x$ contradicting the definition of $a_x$.
Next, if there is an $x\in R\setminus\{0\}$ with $a_x \neq 0$, then $a_x y = 0$ for all $y\in R$: If $y = 0$, that is clear, so suppose $y\neq 0$. Then
$$0 = (a_x x)y = x(a_x y),$$
and since $x\neq 0$ and $R$ has no zero divisors, it follows that $a_x y = 0$, and since $a_x$ and $a_y$ are prime, further $a_y = a_x$, and we have $\operatorname{char} R = a_x$.
If on the other hand $a_x = 0$ for all $x\in R\setminus\{0\}$, then $\operatorname{char} R = 0$ is clear.
So we don't need commutativity.