PrimeFactors Command

From GeoGebra Manual
Revision as of 14:28, 24 August 2015 by Markus.winkler (talk | contribs)
Jump to: navigation, search


PrimeFactors[ <Number> ]
Returns the list of primes whose product is equal to the given number.
Examples:
  • PrimeFactors[1024] yields {2, 2, 2, 2, 2, 2, 2, 2, 2, 2}.
  • PrimeFactors[42] yields {2, 3, 7}.

CAS Syntax

PrimeFactors[ <Number> ]
Returns the list of primes whose product is equal to the given number.
Examples:
  • 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