Polynomials, Permutations, Prime Ideals, and factoring Polynomials modulo p