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

Find out a multi-digit number that if multiplied by the number 9 or any of its multiplications products (i.e. 18, 27, 36, 45,..) will result in the multiplication factor repeated (n) number of times.

Asked by Neha on 08 Jan 2021


There is a square piece of paper with a hole that is denoted by the circle on the top right side in the given picture. You have to cut the paper in a manner that it forms two and only two separate pieces of paper and then rearrange the pieces in a manner that the holes come in the centre of the paper.

Rearrange Paper

Asked by Neha on 18 Aug 2023

What number comes next in the series?

5 15 5 18 5 24 14 20 _

Asked by Neha on 15 Jun 2023


I am the largest in my family of fifty.
The youngest of our family lives separately from the rest of the family and so do I.
I am regarded as harsh and tough.
I am so large, you cut me in two equal halves,
each half would still be larger than the second largest member of the family.
Who am I?

Asked by Neha on 14 May 2021

Can you count the number of squares in the given picture?

How Many Squares you Find

Asked by Neha on 13 Feb 2024

What is the fastest way to double your money?

Asked by Neha on 12 Feb 2023


Andrew’s doctor gives him three pills and tells him to take one every half hour. How much time will have passed by the time Andrew’s taken all three pills?

Asked by Neha on 22 Jun 2025

There is a place where if I stand up straight, I will still be considered sideways.

Asked by Neha on 05 May 2025

I have two coins.
* One of the coins is a faulty coin having a tail on both sides of it.
* The other coin is a perfect coin (heads on side and tail on other).

I blindfold myself and pick a coin and put the coin on the table. The face of the coin towards the sky is the tail.

What is the probability that another side is also tail?

Asked by Neha on 07 Jun 2023


Which alphabet letter is a question?

Asked by Neha on 19 Apr 2023

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.