The maple_ifactors
command decomposes an integer into prime factors
and returns the result in Maple syntax.
maple_ifactors takes
n, an integer or a list of integers.
maple_ifactors(n) decomposes the integer n
(or the integers of the list) into prime factors, given as a list
following the Maple syntax; namely,
a list starting with +1 or −1 (for the sign), then a matrix
with 2 columns whose rows are the prime factors and their
multiplicity (or a list of such lists).