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

You can win me and lose me but never buy me
You can not eat me and never want to part with me
I can make you cry or bring you joy
I am not a machine and definitely not a toy
You keep me but i am not forever just yours
You might find me in a case or on a shelf next to a vase
I am hard and i am tall if you bump me i am sure to fall
I am made of different materials and am at many events
If your lucky and fight hard I might be yours
What am I ?

Asked by Neha on 11 May 2021


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

What makes this number unique: 8,549,176,320?

Asked by Neha on 08 Jul 2025


Find out the number of circles in the given picture having Illusion

How many circles do you see?

Asked by Neha on 20 Apr 2021

A farmer went to a market and bought a wolf, a goat, and a cabbage. On his way home, the farmer came to the bank of a river and rented a boat. But crossing the river by boat, the farmer could carry only himself and a single one of his purchases: the wolf, the goat, or the cabbage. If left unattended together, the wolf would eat the goat, or the goat would eat the cabbage. The farmer’s challenge was to carry himself and his purchases to the far bank of the river, leaving each purchase intact. How did he do it?

Asked by Neha on 21 May 2025

Decode the below four famous ciphers:

8P of the SS
1M of the E
1S of the SS
60M in 1H

Asked by Neha on 17 May 2021


What is the next number in this matchsticks series riddle?

Next Number In Matchstick Series

Asked by Neha on 27 Apr 2021

Let's play a word game. Following are some meaningless words that can be completed by adding random letters on either side of the word.

For example, the word "rdo" can be formed into "pardon".

Using the same technique, can you complete the given words?
ecalc
airb
rinci
tibac
uidel
gorit
igna
eyho

Asked by Neha on 17 Feb 2025

Can you spot the man between the coffee bean in the picture below ?

Spot the Man

Asked by Neha on 31 Aug 2021


Thirty friends were on a hiking trip when they decided to enjoy the bonfire. They assembled for it and agreed to play a game. For that, they divided themselves into five teams with seven members each, forming five rows.

How did they manage to achieve this formation?

Asked by Neha on 07 Oct 2024

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.