factor
Decompose non-negative integers into their prime factors. Returns a JSON array of prime factors for each input number.
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 |
|---|---|---|---|
| raw | No | Write factor lines without a JSON envelope. | |
| numbers | No | Integers to factor. Defaults to whitespace tokens from stdin. | |
| max_value | No | Safety cap for absolute input values. |