prime_factorization
Factor any positive integer into its prime components, returning each prime and exponent. Use it to break numbers into prime powers for math, cryptography, or simplification tasks.
Instructions
Return the prime factorization of a positive integer n.
The result is a list of {"prime": p, "exponent": k} entries, ordered
by prime. prime_factorization(360) -> 2^3 * 3^2 * 5^1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |