lucas_lehmer_test
Test Mersenne numbers for primality using the Lucas-Lehmer algorithm to determine if 2^p - 1 is prime.
Instructions
Perform Lucas-Lehmer primality test for Mersenne numbers. (Domain: arithmetic, Category: special_primes)
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": {
"p": "<p>"
},
"name": "lucas_lehmer_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p | Yes |