Two Squares Pair
two_squares_pairNonnegative integers x and y with x <= y and x^2 + y^2 = n, choosing the greatest y. 5 is 1 and 2. 25 is 0 and 5. A number that is not a sum of two squares is rejected. n 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/two-squares-pair
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": "two_squares_pair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |