wilson_factorial_mod
Calculate k! mod m efficiently for Wilson's theorem primality testing. Computes factorial modulo for number theory applications.
Instructions
Calculate k! mod m efficiently for Wilson's theorem. (Domain: arithmetic, Category: primality_tests)
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": {
"k": "<k>",
"m": "<m>"
},
"name": "wilson_factorial_mod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | Yes | ||
| m | Yes |