Prime Count
prime_countpi(n), the number of primes less than or equal to n. pi(0) and pi(1) are 0, pi(10) is 4, pi(100) is 25, and pi(10000000) is 664579. n runs from 0 to 10000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/prime-count
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_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |