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.

sievedemo/v0 package

Overview

Package sievedemo is a small gnoweb demo of the Sieve of Eratosthenes provided by the p/moul/x/daily/sieve(/p/nym-moultest123/x/daily/sieve/v0) library: it renders the primes up to MaxN, the first 100 primes, and an interactive "primes up to n" grid.

It contains no sieve logic of its own — everything comes from `sieve.PrimesUpTo` and `sieve.MaxN`.

Function

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render renders the sieve for gnoweb.

Example
1Render("")      / Render("/") -> first 100 primes + total count up to MaxN
2Render("/<n>")               -> every prime <= n, laid out as a grid

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-moultest123/x/daily/sievedemo/v0.Render()"

Result