$S$ is an order relation if and only if:
- $S$ is reflexive, so $(a,a) \in S$
- $S$ is anti-symmetric. This is not the same as not symmetric! Rather, you need to prove that if both $(a,b) \in S$ and $(b,a) \in S$ then $a=b$.
- $S$ is transitive, so if $(a,b) \in S$ and $(b,c) \in S$, then $(a,c) \in S$.
Since $a$ and $a$ have the same number of prime factors and $\left| a - \frac{100}{3} \right| = \left| a - \frac{100}{3} \right|$, $S$ is reflexive.
$(a,b) \in S$ and $(b,a) \in S$ imply $\left| b - \frac{100}{3} \right| \leq \left| a - \frac{100}{3} \right|$ and $\left| a - \frac{100}{3} \right| \leq \left| b - \frac{100}{3} \right|$, so $\left| a - \frac{100}{3} \right| = \left| b - \frac{100}{3} \right|$, so $a - \frac{100}{3} = b - \frac{100}{3}$ or $a - \frac{100}{3} = \frac{100}{3}-b$. This means $a=b$ or $a=\frac{200}{3}-b$, but the latter can't be satisfied by positive integers $a,b$, so $a=b$. Therefore $S$ is anti-symmetric.
If $a$ and $b$ have the same number of prime factors and $b$ and $c$ have the same number of prime factors, clearly $a$ and $c$ also have the same number of prime factors. Also $\left| a - \frac{100}{3} \right| \leq \left| b - \frac{100}{3} \right|$ and $\left| b - \frac{100}{3} \right| \leq \left| c - \frac{100}{3} \right|$, so $\left| a - \frac{100}{3} \right| \leq \left| c - \frac{100}{3} \right|$. Hence $S$ is transitive.