fermat_primality_test
Test if a number is prime using Fermat's primality test, which applies probabilistic checks with configurable iterations to identify probable primes.
Instructions
Fermat primality test. Simple but can be fooled by Carmichael numbers. (Domain: arithmetic, Category: advanced_primality)
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": "fermat_primality_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| k | No |