๐Ÿงญ Helm

The Diagnostic Sweep

Stardate 55129.5 ยท UES Magnanimous

Briefing

The end-of-patrol diagnostic walks every relay in sequence and says what each one needs. Every third relay needs coolant. Every fifth needs plasma. A relay that is both a third and a fifth needs coolant-plasma, and everything else just reports its number. It is the oldest routine on the ship and it has, at some point, stopped doing any of that and started simply counting.

Commander Raghunathan says every engineer in the fleet has written this exact routine as a rite of passage, and that the ones who get relay fifteen wrong the first time are, historically, all of them. Lt. Skree does not see why fifteen would be special. Skree will.

Mission objectives

ARCHIE checks all five every time you run diagnostics.

  • โ€ขRelays 1 to 5: number, number, coolant, number, plasma
  • โ€ขRelay 15 is coolant-plasma, not coolant and not plasma
  • โ€ขRelays 1 to 15 in full
  • โ€ขA sweep of zero relays is empty
  • โ€ขRelay 30 is also coolant-plasma
Ask Commander Raghunathan for a hint

Check the both-case first. If you test 'divisible by three' before 'divisible by both', fifteen is caught by the first test and never reaches the right answer. Order of conditions is the whole puzzle.