Difference between revisions of "PrimeFactors Command"
From GeoGebra Manual
(Autogenerated from properties) |
|||
Line 1: | Line 1: | ||
− | |||
<noinclude>{{Manual Page|version=4.0}}</noinclude> | <noinclude>{{Manual Page|version=4.0}}</noinclude> | ||
{{command|algebra}} | {{command|algebra}} | ||
− | ;PrimeFactors[ <Number> ] | + | ;PrimeFactors[ <Number> ]:Returns the list of [[w:Prime number|primes]] whose product equals to the given number. |
− | + | {{Example| | |
+ | *<code>PrimeFactors[1024]</code> returns ''{2,2,2,2,2,2,2,2,2,2}''. | ||
+ | *<code>PrimeFactors[42]</code> returns ''{2,3,7}''.}} | ||
+ | {{Note|See also [[PrimeFactorization Command|PrimeFactorization (PrimeFactorisation) Command]].}} |
Revision as of 15:56, 28 February 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 PrimeFactorization (PrimeFactorisation) Command.