✓
Passing This code compiles and runs correctly.
Code
import std/io
import std/table
// Pin #5: the mod-30030 wheel gap table (5,760 cyclic gaps). They tile exactly one
// period, so the full sum is the modulus: 30030. Strong check on the whole table.
gaps(g) { x over 0..30030 | keep gcd(x, 30030) == 1 }
sum(total) { g }
std/io:print.ln("{{ total:d }}")
Actual
30030
Expected output
30030
Flows
flow ~gaps click a branch to expand · @labels scroll to their anchor
gaps (g, source: x over 0..30030 | keep gcd(x, 30030) == 1)
flow ~sum click a branch to expand · @labels scroll to their anchor
sum (total, source: g)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "{{ total:d }}")
Test Configuration
MUST_RUN