NumberTheory
PrimeFactors
prime factors of an integer
Calling Sequence
Parameters
Description
Examples
Compatibility
PrimeFactors(n)
n
-
integer
The PrimeFactors(n) command computes the prime factors of the integer n.
Every prime number divides 0 evenly, but one cannot represent the set of all prime numbers as an enumerated set. Therefore, PrimeFactors(0) returns an error.
with⁡NumberTheory:
PrimeFactors⁡3526
2,41,43
PrimeFactors⁡55557
3,6173
PrimeFactors⁡−57
3,19
plots:-pointplot⁡`union`⁡seq⁡map⁡p↦n,p,PrimeFactors⁡n,n=1..1000
PrimeFactors⁡0
Error, (in NumberTheory:-PrimeFactors) cannot represent all prime factors of 0
The NumberTheory[PrimeFactors] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
ifactor
NumberTheory[NumberOfPrimeFactors]
Download Help Document