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

What are the 50th, 63rd and 100th numbers in the sequence below?
4, 5, 8, 8, 9, 9, 12, 13, 13, 13, 17, 18, ...

Asked by Neha on 08 Feb 2024


There are 4 big houses. They are made from the materials: red marble, green marble, white marble and blue marble.

* Mrs Jennifer's house is somewhere to the left of the green marble one and the third one alone is white marble.
* Mrs Sharon owns a red marbles house and Mr Cruz does not live at either end, but lives somewhere to the right of the blue marbles house.
* Mr Danny lives in the fourth house, while the first house is not made from red marble.

Who lives where, and what is their house made from?

Asked by Neha on 15 May 2026

In four steps you need to move the word 'cold' From 'warm' by replacing one alphabet at a time such that every word formed at each step is acceptable in English Dictionary.

Asked by Neha on 23 Aug 2024


Can you make a six-letter word using the letters N, A and B ?

Asked by Neha on 29 Aug 2021

Can you replace the question mark with the correct number in the below table sequence?

Complete the table Sequence

Asked by Neha on 23 Feb 2025

Count the squares in the matchstick puzzle below?

Count the Squares

Asked by Neha on 17 Sep 2023


In the image below, you can see two glasses and two matchsticks.You need to move four matchsticks in such a manner that the crosses come inside the glasses. Note: you cannot move the crossed.

Fun With Matchsticks

Asked by Neha on 13 Dec 2023

A few friends are enjoying their sea voyage in a boat full of apples. On the way, they felt hungry and thus decided to eat the apples. Together, they ate two dozen of apples. When they have eaten the apples, will there be any change in the water level?

Asked by Neha on 06 May 2021

How many points are there on the globe where, by walking one mile south, then one mile east and then one mile north, you would reach the place where you started?

Asked by Neha on 21 Apr 2022


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

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.