Back to functions

pfactor


pfactor

Returns the prime factors of a number. CAUTION: Calling evaluate will cause the factors to be re-evaluated causing the number to be returned.


Usage: nerdamer("pfactor(x)")


Parameters

expression x Returns the appropriate value if possible otherwise it returns the function with the simplified expression

EXAMPLES:
var x = nerdamer('pfactor(5.2)');
console.log(x.text());
x = nerdamer('pfactor(113)');
console.log(x.text());
OUTPUT:
Back to functions