✓
Passing This code compiles and runs correctly.
Code
import std/io
import std/table
// Pin #4: the wheel GAP table — cyclic residue differences a wheel sieve walks.
// mod-6 wheel residues [1,5] over period 6 -> gaps [4, 2]. The k gaps tile one
// full turn, so they sum to the period (6). Verified by sum.
gaps(g6) { x over 0..6 | keep gcd(x, 6) == 1 }
sum(total) { g6 }
std/io:print.ln("{{ total:d }}")
Actual
6
Expected output
6
Flows
flow ~gaps click a branch to expand · @labels scroll to their anchor
gaps (g6, source: x over 0..6 | keep gcd(x, 6) == 1)
flow ~sum click a branch to expand · @labels scroll to their anchor
sum (total, source: g6)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "{{ total:d }}")
Test Configuration
MUST_RUN