segmented_sieve
Find prime numbers within a specified range using a memory-efficient algorithm. This tool calculates all primes between given low and high values with optimized resource usage.
Instructions
Segmented sieve for finding primes in a range [low, high] with memory efficiency. (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": {
"low": "<low>",
"high": "<high>"
},
"name": "segmented_sieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| low | Yes | ||
| high | Yes |