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

John went to buy some expensive, foreign chocolates. He only had Rs 100 with him. When he reached the shop, he got out and know that on those chocolates, there was a 15% import duty and 5% VAT.

How much worth chocolate should he buy so that he can accommodate it in Rs 100?

Asked by Neha on 25 Oct 2024


One day, Birbal got late for a function and Akbar was highly disappointed.
Please forgive me Jahanpanah. I arrived late because my child was crying and I had to calm him down, explained Birbal.
Does it take this long to placate a child? questioned the emperor. I feel that you have no idea about how to raise a child. I order you to act like a child and I will act like your father to show you how you should have dealt with your child. Come on! Ask me all that he asked from you.
Father, I want a cow, said Birbal.
The emperor quickly ordered one of the servants to bring a cow to the kingdom.
I want to drink its milk, now, now, now! said Birbal, imitating the voice of his child.
Akbar asked his servants to milk the cow and give to Birbal.
The servants quickly milked the cow and offered the milk to Birbal. He sipped in a little and then gave the bowl to the emperor.
As Birbal put up the next demand that was put up by his child a few hours ago, the emperor was stunned and left the room.
What did Birbal say?

Asked by Neha on 17 May 2021

You can hear me, but you can't touch or see me.

What am I?

Asked by Neha on 27 Sep 2025


What has a bottom at the top?

Asked by Neha on 20 Jul 2025

A king sentenced a man to the death sentence for some crime he had committed. Known for his kindness, the king told the culprit that he had a choice to die in a way he decides.

The culprit was clever and said something that saved him from death. What method do you think he must have chosen for his death?

Asked by Neha on 17 Oct 2025

In the given figure, you can see that four match sticks are used to form a square. Can you form five squares by using six matches?

Make Six Square

Asked by Neha on 14 May 2021


How many triangles are there in the picture below?

Triangle Count Riddle

Asked by Neha on 12 Feb 2026

It is Secret Agent Bond Girl Friend's birthday but he is on a secret mission

Mr Bond has a secret device by which he can only use the below words for sending the message.

Dumbo, Nazi, Carrot, Ronda, Zambia, Racing, TinTin, Seou, Zareeba, Laltain, Saphire, Tar, Orphan, Audition, Biscotti.

Mr Bond sends the following message to her girlfriend:
Carrot Dumbo Nazi Racing Ronda Zambia TinTin Seou Laltain Zareeba Tar Biscotti Orphan Audition Snake

What does Mr. Bond's Message say?

Asked by Neha on 12 Apr 2026

You need to pick one entry from pot A and one from pot B to have a perfect match. Can you do it?

Football World Cup 2014

Asked by Neha on 22 Aug 2021


How can a man go eight days without sleep?

Asked by Neha on 11 Mar 2024

Hot Articles

Amazing Facts

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.