Factor
Factor[poly] factors a polynomial over the integers.
Factor[poly,Modulus->p] factors a polynomial modulo the prime p.
Factor[poly,Extension->{a1,a2,…}] factors a polynomial allowing coefficients that are rational combinations of the algebraic numbers ai.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.