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

On 26-01-2022, Juli was murdered at her house in a city in India in the afternoon. There were three suspects in the murder and the following are the statements that were given by them:

John: I visited my village that day.
Jacob: I was out to deposit my house tax in the municipality office at that time.
Jonny: I was at a friend's place having lunch at that time.

Can you find out who is the murderer?

Asked by Neha on 15 Dec 2023


A man has to get a fox, a chicken, and a sack of corn across a river.

He has a rowboat, and it can only carry him and one other thing.
If the fox and the chicken are left together, the fox will eat the chicken.
If the chicken and the corn are left together, the chicken will eat the corn.

How does the man do it?

Asked by Neha on 04 May 2021

In a basket of apples,
when counted in twos, there was one extra
when counted in threes, there were two extra when counted in fours, there were three extra
when counted in fives, there were four extra
when counted in sixes, there was five extra.

However, if the apples were counted in sevens, no extra apple was left. Can you calculate the minimum number of apples that were present in the basket?

Asked by Neha on 12 Sep 2023


One day, I thought of ways that can be used for creating a palindrome. So I decided that I will turn into a larger number by adding the reversed digits to the original number and keep doing it till I finally obtained a palindrome.

I am not sure if this process will always result in a palindrome eventually but I was able to produce a four-digit palindrome. Can you guess my starting number?

Asked by Neha on 17 Apr 2024

How many bananas can you eat if your stomach is empty?

Asked by Neha on 13 Mar 2022

Can you identify the direction in which this bus is moving; left or right?

Hint: The bus is moving on the roads of London.


Find Bus Direction

Asked by Neha on 17 May 2021


A brand new Mobile Phone was on sale at 20% as a promotional offer. By what per cent must the Mobile price be increased to sell it at the original price again?

Asked by Neha on 26 Oct 2023

Replace the question mark with the correct number.

Replace the question mark

Asked by Neha on 09 May 2023

Given below is simple addition with a defined pattern pattern:
7 + 7 = 2
8 + 8 = 4
8 + 5 = 1
6 + 9 = 3
10 + 11 = 9

Can you analyze the pattern and find out the answer for:

4 + 9 = ?

Solve the Addition

Asked by Neha on 05 Apr 2021


On one occasion, A Boy collects 71 rupees in form of 20 paise and 25 paise. He collects a total of 324 coins.

Can you tell me how many 20-paisa and 25-paisa he got?

Asked by Neha on 13 Jul 2024

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.