Legendre Symbol
legendre_symbolThe Legendre symbol (a/p) for an odd prime p. (2/7) is 1, (3/7) is -1, and (-1/5) is 1. p must be an odd prime. a runs from -1000000000000 to 1000000000000, and p runs from 0 to 1000000000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/legendre-symbol
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": {
"a": "<a>",
"p": "<p>"
},
"name": "legendre_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| p | Yes |