factor
Compute the prime factorization of an integer, utilizing PARI/GP's number theory capabilities.
Instructions
Factor an integer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"n": "<n>"
},
"name": "factor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Integer to factor. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |