prime_counting_sieve
Count prime numbers up to a specified limit using an optimized sieve algorithm. Returns the total count without listing individual primes.
Instructions
Count primes up to limit using optimized sieve (returns count, not list). (Domain: arithmetic, Category: sieve_algorithms)
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": {
"limit": "<limit>"
},
"name": "prime_counting_sieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes |