optimized_wilson_test
Test if an integer is prime using Wilson's theorem with an optimized pairing technique for improved computational performance.
Instructions
Optimized Wilson's theorem test using pairing technique for better performance. (Domain: arithmetic, Category: wilson_theorem)
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": "optimized_wilson_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |