Render
func(path string) stringRender renders the sieve for gnoweb. Render("") / Render("/") -> first 100 primes + total count up to MaxN Render("/<n>") -> every prime <= n, laid out as a grid
- OID
- 08c188…141a:3
Render details
parseN
func(path string) (int, bool)parseN extracts n from a Render path like "/1000". Returns hasN=false for the empty/root path.
- OID
- 08c188…141a:5
parseN details
grid
func(primes []int, cols int) stringgrid formats primes into a Markdown table with \`cols\` columns per row.
- OID
- 08c188…141a:6