
ifactor - factorisation of integers

Calling sequence:
ifactor(integer)

Parameter:

integer   --  integer

Summary:

ifactor returns the factorisation of integer. The result is the

list [s, p1, e1, ..., pn, en]. Whereby pi is the i-th prime factor and ei
the corresponding exponent; s is the sign of integer (1 or -1). The prime
factors are sorted in ascending order. ifactor(0) returns 0.

ifactor returns an error when the argument is a number but not an integer.
ifactor returns the call with an evaluated argument if the arguement is not
a number. ifactor is a kernel function.

>>  ifactor(11);

     [1, 11, 1]

>>  ifactor(-8434536348);

      [- 1, 2, 2, 3, 1, 7, 1, 100411147, 1]

See also:  isprime

