Perfect Power
perfect_powerWhether n is a perfect power a^k with k at least 2. The base is the smallest such a, so the exponent is the largest. 16 is 2^4, 36 is 6^2, and 7 is not a perfect power. 0 and 1 use exponent 2. A leading zero is rejected. n has at most 80 digits. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/perfect-power
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": "perfect_power"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |