factor
Prime factorize non-negative integers, returning JSON with each number's prime factors for decomposition analysis.
Instructions
Compute the prime factorization of given non-negative integers. Read-only, no side effects. Returns JSON with an array of prime factors for each input number. Use to decompose integers into prime components. Not for general arithmetic — use 'expr' for calculations. See also 'expr'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_value | No | Safety cap for absolute input values. | |
| numbers | No | Integers to factor. Defaults to whitespace tokens from stdin. | |
| raw | No | Write factor lines without a JSON envelope. |