Difference between revisions of "PrimeFactors Command"

From GeoGebra Manual
Jump to: navigation, search
Line 7: Line 7:
 
{{Note|See also [[Factors Command]].}}
 
{{Note|See also [[Factors Command]].}}
 
==CAS Syntax==
 
==CAS Syntax==
 +
;PrimeFactors[ <Number> ]:Returns the list of [[w:Prime number|primes]] whose product equals to the given number.

Revision as of 12:36, 9 August 2011



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

CAS Syntax

PrimeFactors[ <Number> ]
Returns the list of primes whose product equals to the given number.
© 2024 International GeoGebra Institute