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

In a classic wine shop, the list of three most popular wines are:
- The cost of 1 French wine bottle: 500$
- The cost of 1 German wine bottle: 100$
- The cost of 20 Dutch wine bottles: 100$

John entered the wine shop and he needs to buy
- All three types of wine bottles.
- Needs to buy Dutch wine bottles in multiples of 20.
- Need to buy 100 wine bottles in total.

John has only 10000$. How many wine bottles of each type, John must buy?

Asked by Neha on 19 Aug 2023


A man looks at a painting in a museum and says, “Brothers and sisters I have none, but that man’s father is my father’s son.” Who is in the painting?

Asked by Neha on 12 Mar 2025

In the following picture, E is going to slide the object down and as per the terrain and the physics, the round object is going to travel all the way till the end. Now, can you analyze who all people will die when it happens?

Who All Dies

Asked by Neha on 21 Mar 2021


One day, all the courtiers from Akbar's court were gathered in the assembly hall when one of them told the Emperor that all his valuables had been stolen by a thief the previous night.
This shocked the Emperor to his core as the place where that courter stayed was the most secured in the kingdom. The Emperor thought that it is not at all possible for an outsider to enter into the courtier's house and steal the valuables. Only another courtier could commit this crime. He quickly called Birbal to identify the thief.
Birbal thought for a while and successfully solved the mystery by identifying the thief in just one statement.
What did Birbal say?

Asked by Neha on 17 May 2021

A Detective reviewed the information they had on the case so far.

A lady named 'Caterina' was found shot and they already had a list of suspects - Ankit, Tarun, Harish, Manoj and Manish.
The killer is a fan of challenges him by leaving notes ad various places.
* The first was found in a toilet room.
* The second was found in an art room.
* The third was in a restroom.
* the fourth in an underwater room.
* The fifth at the no-smoking room.

All of the notes read the same thing, 'The clues are where you find the notes.' Yet, nothing was found at any place the notes were.
Detective the genius, immediately solved the case.
Who was the killer?

Asked by Neha on 11 Sep 2023

In the city of Brain Teasers, 5% of people do not list their phone numbers. Now if we select random 100 people from the phone directory, then how many people selected will have unlisted phone numbers?

Asked by Neha on 30 Oct 2023


Can you solve the photo plexer logic ?

Logical Rebus

Asked by Neha on 14 May 2021

I have branches, but no fruit, trunk or leaves. What am I?

Asked by Neha on 13 Feb 2022

On a magical land of Mexico , all the animal in the land are rational.

There are 10 tigers and one goat.
Tiger can eat goat but since it's a magical land , the tiger who eats the goat , turns into goat and then can be eaten by the remaining tiger(s).

If we leave them for some time then how many goat and tiger will be there , when we come back ?

Asked by Neha on 31 May 2021


In an Art Gallary, When the clock hit 11 am, Artist hung the painting number 30. When it struck 4 pm, he hung painting number 240 and when it struck 7:30 pm, he hung painting number 315.

Can you determine, which painting number will he hang when the time is 9:20 pm?

Asked by Neha on 18 Sep 2025

Hot Articles

Amazing Facts

Jigsaw puzzles

Jigsaw puzzles soared in popularity during the great depression, as they provided a cheap, long-lasting, recyclable form of entertainment.