Mersenne Prime
mersenne_primeWhether 2^n - 1 is prime. Exponents 2, 3, 5, 7, 13, 17, 19, and 31 are, inside this cap. Exponent 11 is not, because 2047 = 23*89. n runs from 2 to 31. This checks the given exponent. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/mersenne-prime
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": "mersenne_prime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |