Prime Power
prime_powerIf n is a prime power p^k with k at least 1, return that prime and the exponent. Otherwise the prime and the exponent are 0. 8 is 2^3, 49 is 7^2, and 12 is not a prime power. n runs from 1 to 1000000000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/prime-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": "prime_power"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |