linear_sieve
Generate prime numbers up to a specified limit using the Sieve of Euler algorithm, marking each composite number exactly once for efficient computation.
Instructions
Linear time sieve (Sieve of Euler) - each composite marked exactly once. (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": "linear_sieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes |