Most Bizarre Riddle Ever?
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.
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.