Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

v0 state

Back to all declarations

Render

func(path string) string

Render 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

Open
OID
0efaf4…5c70:3
Render details

Inspect func

parseN

func(path string) (int, bool)

parseN extracts n from a Render path like "/1000". Returns hasN=false for the empty/root path.

Open
OID
0efaf4…5c70:5
parseN details

Inspect func

grid

func(primes []int, cols int) string

grid formats primes into a Markdown table with \`cols\` columns per row.

Open
OID
0efaf4…5c70:6
grid details

Inspect func
Render : func(path string) string Inspect
parseN : func(path string) (int, bool) Inspect
grid : func(primes []int, cols int) string Inspect