Wilang Documentation1.0.0+4

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)

Expected result: matrix.

See also#

factor · isPrime

All functions · Math guides