I came up with the following as an answer to a question in a book. I think there is a problem with this answer but I can't figure out what. The solutions have a very different proof. Can you help me identify my mistake?
I note that, in previous questions I proved that ever positive integer has at least 1 prime divisor and every positive integer can be written as the product of prime divisors and the number 1.
Here is my proposed proof:
Let $p$ be a prime that divides $bc$. Note that $bc = pm$ for some positive integer $m$. If $b$ and $c$ are prime and the theorem doesn't hold, $p$ does not divide $bc$, which is a contradiction.
Let $S_b$ be the set of primes that divide $b$ and let $S_c$ be the set of primes that divide $c$. If $p$ does not divide $a$ or $b$, then $p \notin S_a$ and $p \notin S_b$. Now, let $P_1\cdot...\cdot P_n$ and $Q_1\cdot...\cdot Q_k$ be prime factorizations of $b$ and $c$ respectively. Then $(P_1\cdot...\cdot P_n)(Q_1\cdot...\cdot Q_k) = c = pm$. So we have $m = \frac{(P_1\cdot...\cdot P_n)(Q_1\cdot...\cdot Q_k)}{p}$. The LHS is an integer. However, since $p$ does not divide any of $P_1,...,P_n,Q_1,..., Q_k$, the RHS is not an integer. This is a contradiction