Prisoner to be freed

The warden meets with 23 new prisoners when they arrive. He tells them, "You may meet today and plan a strategy. But after today, you will be in isolated cells and will have no communication with one another.

"In the prison is a switch room, which contains two light switches labeled 1 and 2, each of which can be in either up or the down position. I am not telling you their present positions. The switches are not connected to anything.

"After today, from time to time whenever I feel so inclined, I will select one prisoner at random and escort him to the switch room. This prisoner will select one of the two switches and reverse its position. He must flip one switch when he visits the switch room, and may only flip one of the switches. Then he'll be led back to his cell.

"No one else will be allowed to alter the switches until I lead the next prisoner into the switch room. I'm going to choose prisoners at random. I may choose the same guy three times in a row, or I may jump around and come back. I will not touch the switches, if I wanted you dead you would already be dead.

"Given enough time, everyone will eventually visit the switch room the same number of times as everyone else. At any time, anyone may declare to me, 'We have all visited the switch room.'

"If it is true, then you will all be set free. If it is false, and somebody has not yet visited the switch room, you will all die horribly. You will be carefully monitored, and any attempt to break any of these rules will result in instant death to all of you"

What is the strategy they come up with so that they can be free?




Similar Riddles

Replace all '*' with digits 1, 2, 3, 4, 5 and 6 to make below statement true.

* *
x *
=====
* * *

Asked by Neha on 29 Jul 2021


A car key is hidden in the picture. Can you spot it.? Quickly test your eye power now!

Find the car key

Asked by Neha on 03 Oct 2026

Move three sticks of the spiral below to form a square.

Spiral to Square Puzzle

Asked by Neha on 15 Nov 2025


No one wants to have it, but if one got it, he does not want to lose it. What is It?

Asked by Neha on 11 Jan 2021

What does this mathematical rebus means ?

Maths Riddle

Asked by Neha on 01 Apr 2021

Here is a mathematical challenge that will not only engage your brain but also measure your quick-thinking abilities. If you can successfully identify the missing number in such a short span, you are demonstrating exceptional intellectual qualities.

Replace the Question Mark

Asked by Neha on 08 Sep 2026


I noticed one of the words in the oxford dictionary is spelled incorrectly. What about you?

Asked by Neha on 24 Oct 2023

The Little ant seems to be always confused. Do you know why?

Asked by Neha on 26 May 2024

Find the next number in the series.
1 10 24 43 67 ?

Asked by Neha on 26 Jun 2024


Find The Missing Number In the Sequence.
6 25 64 ? 32 1

Asked by Neha on 07 Nov 2024

Hot Articles

Amazing Facts

Challenging

There is a cryptic organization called Cicada 3301 that posts challenging puzzles online, possibly to recruit codebreakers and linguists.