Quadratic Residue
quadratic_residueWhether a is a square modulo an odd prime p, counting 0 as a square. 2 is a square mod 7, and 3 is not. -1 is a square mod 5 and not mod 7. p must be an odd prime. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/quadratic-residue
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": "quadratic_residue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| p | Yes |