Most Bizarre Riddle Ever?

John Clark Craig
6 min readJul 1, 2022

The 100-Prisoners riddle is ridiculously weird and hard to believe, but with a short Python program we can verify, or dispute, what the experts claim.

Photo by Alexander Krivitskiy on Unsplash

Imagine a prison with 100 prisoners, each with a number from 1 to 100 printed on their back. A room is set up with 100 boxes labeled 1 to 100. Each box has one of the numbers from 1 to 100 randomly placed inside.

John Clark Craig

Author, inventor, entrepreneur — passionate about alternate energy, technology, and how Python programming can help you hack your life.