Skip to main content

PrimeFactors

PrimeFactors [/Q] inNumber

PrimeFactors calculates the prime factors of inNumber. By default factors are printed in the history and are also stored in the wave W_PrimeFactors in the current data folder. On input, inNumber is converted into an unsigned 64-bit integer. The largest number that this operation can handle is 253-1.

Flags

/DEST=fWaveSpecify the output wave for the prime factors. If you do not specify this flag, the operation saves the data in the wave W_PrimeFactors in the current data folder.
This flag was added in Igor Pro 10.
/FREECreates the destination wave as a free wave.
/FREE is allowed only in functions, and only if the destination wave is a simple name or wave reference structure field.
See Free Waves for more discussion.
The /FREE flag was added in Igor Pro 10.00.
/QSuppresses printing of factors in the history area.

Details

The largest number that this operation can handle is 253-1.

See Also

gcd, RatioFromNumber