How prime factorizations govern the Collatz conjecture