Next Prime
next_primeThe least prime greater than or equal to n. 0, 1, and 2 all give 2. 14 gives 17. 10000000 gives 10000019. n runs from 0 to 10000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/next-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": "next_prime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |