Skip to main content
Glama

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)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitYes

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrishayuk/chuk-mcp-math-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server