Difference between revisions of "PrimeFactors Command"
From GeoGebra Manual
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 ) |
(command syntax: changed [ ] into ( )) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|algebra}} |
− | {{command|cas=true|algebra}} | + | ;PrimeFactors( <Number> ) |
− | ;PrimeFactors | + | :Returns the list of [[w:Prime number|primes]] whose product is equal to the given number. |
− | :Returns the list of [[w:Prime number|primes]] whose product | + | :{{examples|1=<div> |
− | :{{ | + | :* <code><nowiki>PrimeFactors(1024)</nowiki></code> yields ''{2, 2, 2, 2, 2, 2, 2, 2, 2, 2}''. |
− | :* <code><nowiki>PrimeFactors | + | :* <code><nowiki>PrimeFactors(42)</nowiki></code> yields ''{2, 3, 7}''.</div>}} |
− | :* <code><nowiki>PrimeFactors | ||
− | |||
==CAS Syntax== | ==CAS Syntax== | ||
− | ;PrimeFactors | + | ;PrimeFactors( <Number> ) |
− | :Returns the list of [[w:Prime number|primes]] whose product | + | :Returns the list of [[w:Prime number|primes]] whose product is equal to the given number. |
− | :{{ | + | :{{examples|1=<div> |
− | :* <code><nowiki>PrimeFactors | + | :* <code><nowiki>PrimeFactors(1024)</nowiki></code> yields ''{2, 2, 2, 2, 2, 2, 2, 2, 2, 2}''. |
− | :* <code><nowiki>PrimeFactors | + | :* <code><nowiki>PrimeFactors(42)</nowiki></code> yields ''{2, 3, 7}''.</div>}} |
− | {{note|See also [[Factors Command]].}} | + | {{note|See also [[Factors Command|Factor]] command.}} |
Latest revision as of 13:02, 5 October 2017
- PrimeFactors( <Number> )
- Returns the list of primes whose product is equal to the given number.
- Examples:
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 is equal to the given number.
- Examples:
PrimeFactors(1024)
yields {2, 2, 2, 2, 2, 2, 2, 2, 2, 2}.PrimeFactors(42)
yields {2, 3, 7}.
Note: See also Factor command.