PrimeFactors Command

From GeoGebra Manual
Revision as of 10:55, 23 August 2011 by Alexander Hartl (talk | contribs)
Jump to: navigation, search



PrimeFactors[ <Number> ]
Returns the list of primes whose product equals to the given number.
Example:
  • PrimeFactors[1024] yields {2, 2, 2, 2, 2, 2, 2, 2, 2, 2}.
  • PrimeFactors[42] yields {2, 3, 7}.
Note: See also Factors Command.

CAS Syntax

PrimeFactors[ <Number> ]
Returns the list of primes whose product equals to the given number.
Example:
  • PrimeFactors[1024] yields {2, 2, 2, 2, 2, 2, 2, 2, 2, 2}.
  • PrimeFactors[42] yields {2, 3, 7}.
Note: See also Factors Command.
© 2024 International GeoGebra Institute