Timeburn Burn your time wisely.
Gatesmith daily puzzle #31 · 15 November 2026

The Automated Sorter Machine

hard · 3 inputs, 2 outputs · allowed gates: NAND · best known: 14 gates (not proved minimal)

In the sorting room, the SORT signal turns on only if both COIN and SCALE are active, but not when the JAM sensor is triggered. The ERROR light must activate whenever either the JAM sensor or the COIN input fails to match the SCALE status.

Replay this puzzle All puzzles

The truth table

Inputs on the left, outputs on the right. A circuit solves the puzzle when it reproduces every row.

COINSCALEJAMSORTERROR
00001
00100
01000
01101
10000
10101
11011
11100

What the table tells you

The smallest known circuit: 14 gates

As a formula, one line per output:

As a netlist, in the order you would wire it. Each g is one gate; the last lines say which signal drives each output.

  1. g1 = COIN NAND SCALE
  2. g2 = JAM NAND JAM
  3. g3 = SCALE NAND SCALE
  4. g4 = COIN NAND COIN
  5. g5 = g1 NAND g1
  6. g6 = COIN NAND g3
  7. g7 = SCALE NAND g4
  8. g8 = g5 NAND g2
  9. g9 = g6 NAND g7
  10. g10 = g8 NAND g8
  11. g11 = g9 NAND g9
  12. g12 = JAM NAND g9
  13. g13 = g2 NAND g11
  14. g14 = g12 NAND g13
  15. SORT = g10
  16. ERROR = g14

The search ran out of budget before it could rule out every smaller circuit, so 14 is the best anyone found, not a proof. If you build it in fewer, the leaderboard records it. Gates that do not feed an output are never counted.

Leaderboard for the day

Nobody posted a result on the day. The circuit above is the reference.

← #30 The Spaceship Cargo Lock · #32 Garden Sprinkler Schedule →

How Gatesmith works · Learn logic gates · Today's puzzle