This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


Updated In 6 Graphic
gives a list of the prime factors of the integer n, together with their exponents.
FactorInteger[n, k]
does partial factorization, pulling out at most k distinct factors.
  • For negative numbers, the unit {-1, 1} is included in the list of factors.
  • FactorInteger also works on rational numbers. The prime factors of the denominator are given with negative exponents.  »
  • The last element in the list FactorInteger[n, k] gives what is left after the partial factorization.
  • FactorInteger[m+I n] automatically works over the Gaussian integers.
  • When necessary, a unit of the form {-1, 1}, {I, 1} or {-I, 1} is included in the list of factors.
New in 1 | Last modified in 6