Hamming Count
hamming_countHow many Hamming numbers are at most n. Through 1 there is 1, through 7 there are 6, through 10 there are 9, through 12 there are 10, and through 30 there are 18. 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/hamming-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": "hamming_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |