primes
Get prime numbers by specifying count or range. Supports first n primes or a custom interval.
Instructions
Return prime numbers.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "primes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Either an integer (first n primes), or a list [a,b] for range, or start of range. | |
| end | No | End of prime range if n is a start value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |