PrimeFactors Command

From GeoGebra Manual
Revision as of 13:02, 5 October 2017 by Mathmum (talk | contribs) (command syntax: changed [ ] into ( ))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 Factor command.
© 2021 International GeoGebra Institute