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

It spends most of its day eating white, but when it’s quick enough, it gets to eat fruit and sometimes some blue things. It’s in a dark room, where the walls are blue, it runs from a ghost that roams the halls and haunts it all the time. What is it?

Asked by Neha on 30 May 2025


I am quite hot but become too cold if you remove the first two letters. What am I?

Asked by Neha on 24 May 2023

It is always ahead of me yet I can never see it. What is it?

Asked by Neha on 01 Apr 2023


A Child was born in Lahore, Pakistan.

Still child is not a Pakistani citizen.why ?

Asked by Neha on 01 Feb 2023

A little girl goes to the store and buys one dozen eggs. As she is going home, all but three break. How many eggs are left unbroken?

Asked by Neha on 02 Mar 2022

In the Thar desert, 3 men found a big 24L Jar is full of water. Since there is a shortage of water so they decided to distribute the water among themselves such that they all have equal amounts of it. But they only have a 13L, a 5L and an 11-litre Jar.

How do they do it?

Asked by Neha on 11 Jun 2024


With the help clues provided in the image, can you find the 5 digit key?

Find the Key

Asked by Neha on 14 May 2021

An evil man kidnapped someone and made them take one of two pills. One was harmless, but the other was poisonous. Whichever pill the victim took, the kidnapper took the other one. The victim took their pill with water and died. The kidnapper survived. How did the kidnapper get the harmless pill?

Asked by Neha on 27 Jun 2025

The picture shows the dice results in each couple of throws. If they are actually following a pattern, can you find out the missing one?

Next Dice Movement

Asked by Neha on 02 Dec 2023


If one and a half boys, eat one and a half burgers in one and a half hours.

How many burgers can 9 boys eat in 3 hours?

Asked by Neha on 20 May 2023

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.