Difference between revisions of "PrimeFactors Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 6: Line 6:
 
:* <code><nowiki>PrimeFactors[1024]</nowiki></code> yields ''{2, 2, 2, 2, 2, 2, 2, 2, 2, 2}''.
 
:* <code><nowiki>PrimeFactors[1024]</nowiki></code> yields ''{2, 2, 2, 2, 2, 2, 2, 2, 2, 2}''.
 
:* <code><nowiki>PrimeFactors[42]</nowiki></code> yields ''{2, 3, 7}''.</div>}}
 
:* <code><nowiki>PrimeFactors[42]</nowiki></code> yields ''{2, 3, 7}''.</div>}}
{{note|See also [[Factors Command]].}}
+
 
 
==CAS Syntax==
 
==CAS Syntax==
 
;PrimeFactors[ <Number> ]
 
;PrimeFactors[ <Number> ]

Revision as of 10:37, 19 April 2013



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}.


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