Difference between revisions of "PrimeFactors Command"

From GeoGebra Manual
Jump to: navigation, search
m (typo)
m
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>
 
{{command|cas=true|algebra}}
 
{{command|cas=true|algebra}}
 
;PrimeFactors[ <Number> ]
 
;PrimeFactors[ <Number> ]

Revision as of 08:29, 31 July 2015



PrimeFactors[ <Number> ]
Returns the list of primes whose product equals 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 equals 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 Factors Command.
© 2024 International GeoGebra Institute