pfactor#
Factor a positive integer into its prime factors.
Available in: math cells, REPL.
Syntax#
pfactor(n)
Arguments and behavior#
Repeated factors are listed once per occurrence, in ascending order. The example returns matrix.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
pfactor(12)Interactive examples could not load. You can still copy the expressions.
Expected result: matrix.