Prime Factors - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


NumberTheory

  

PrimeFactors

  

prime factors of an integer

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

PrimeFactors(n)

Parameters

n

-

integer

Description

• 

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.

Examples

withNumberTheory:

PrimeFactors3526

2,41,43

(1)

PrimeFactors55557

3,6173

(2)

PrimeFactors57

3,19

(3)

plots:-pointplot`union`seqmappn,p,PrimeFactorsn,n=1..1000

PrimeFactors0

Error, (in NumberTheory:-PrimeFactors) cannot represent all prime factors of 0

Compatibility

• 

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

NumberTheory[NumberOfPrimeFactors]