is_prime
Check if a number is prime by determining if it's only divisible by 1 and itself. Use this tool for arithmetic and number theory calculations.
Instructions
Check if a number is prime. A prime number is only divisible by 1 and itself. (Domain: arithmetic, Category: number_theory)
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": "is_prime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |