Difference between revisions of "PrimeFactors Command"
From GeoGebra Manual
Line 6: | Line 6: | ||
*<code>PrimeFactors[42]</code> returns ''{2,3,7}''.}} | *<code>PrimeFactors[42]</code> returns ''{2,3,7}''.}} | ||
{{Note|See also [[Factors Command]].}} | {{Note|See also [[Factors Command]].}} | ||
+ | ==CAS Syntax== |
Revision as of 12:51, 3 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.