21 NAND Docs 中文

21 gates that drive

A driving circuit of 21 NAND gates, written on BNB Chain as circuit #279. Anyone can run it on chain themselves.

What it is

Some numbers

ItemValue
NAND gates21, depth 10, no latches
Netlist size147 bytes
Against the trained gate networkAll 32,768 inputs tested exhaustively, 0 differences
24 fixed starting pointsAll 24 finish one lap
100 random starting points96 finish one lap (the other 4 start facing the wall, and no controller that sees only these 15 input bits can save them; the hand-written rules also get 96)

The on-chain record

ItemValue
ChainBNB Chain
Processor0x6Fb4089e7Cbaa9660Fd11056274Cbd8117EE5B38
Circuit#279
Written on chain2026-09-08, block 120731587
Transaction0xc6eaa6616968fc6f7ffa8058d18d55e26a06469e9e866ce07636d94e33754a6e
CheckOn-chain eval and the local netlist match on all 64 random inputs

Run it on chain yourself

Install Foundry's cast, then:

Have BNB Chain compute one step with the on-chain #279 netlist (read-only, no wallet, no cost)
cast call 0x6Fb4089e7Cbaa9660Fd11056274Cbd8117EE5B38 \
  "eval(uint256,bytes)(bytes)" \
  279 0xff7f \
  --rpc-url https://bsc-rpc.publicnode.com

Limits

Next