Exact number theory
number_theoryPerform exact number theory operations on large integers: compute GCD, LCM, prime factors, modular exponentiation, inverse, and Euler's totient using BigInt.
Instructions
Run exact integer operations using BigInt.
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": {
"operation": "<operation>",
"values": "<values>"
},
"name": "number_theory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Integer operands. Use strings for large integers. | |
| operation | Yes |