Difference between revisions of "PrimeFactors Command"
From GeoGebra Manual
m (Bot: Automated text replacement (-{{command +{{command|cas=true)) |
|||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.0}}</noinclude> | <noinclude>{{Manual Page|version=4.0}}</noinclude> | ||
− | {{command|algebra}} | + | {{command|cas=true|algebra}} |
;PrimeFactors[ <Number> ] | ;PrimeFactors[ <Number> ] | ||
:Returns the list of [[w:Prime number|primes]] whose product equals to the given number. | :Returns the list of [[w:Prime number|primes]] whose product equals to the given number. |
Revision as of 12:52, 10 September 2011
- 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.
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.