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 stand in front of two doors. A guard stands next to each door. You know the following things: one path leads to paradise, the other leads to death. You cannot distinguish between the two doors. You also know that one of the two guards always tells the truth and the other always lies. You have permission to ask one guard one question to discover which door leads to paradise. What one question would you ask to guarantee you enter the door to paradise?

Asked by Neha on 03 Jun 2025


A man escapes from jail using help from his girlfriend. The investigators suspect four girls of being the man's girlfriend.

Out of those four girls, one is his girlfriend who is lying. Two of the girls are completely innocent and are speaking the truth. One of the girls is the man's sister who is helping the girlfriend lie. Following are the statements from all four of them:

Ariana: "Myrna is his girlfriend."
Jane: "Angelina is lying."
Angelina: "Ariana is lying."
Myrna: "Jane is not his sister."

Can you find out who is the man's sister among them?

Asked by Neha on 27 Mar 2026

Which fur should we be getting from the Lion?

Asked by Neha on 10 Feb 2021


Solve The below Equation:

ALFA + BETA + GAMA = DELTA

Asked by Neha on 20 Jul 2023

John and Jenni are a married couple. They have two kids, one of them is a girl. Assume safely that the probability of each gender is 1/2.
What is the probability that the other kid is also a girl?

Hint: It is not 1/2 as you would first think.

Asked by Neha on 14 Jun 2024

When it's bad luck to meet a black cat?

Asked by Neha on 01 Mar 2025


When I get multiplied by any number, the sum of the figures in the product is always me. What am I?

Asked by Neha on 10 Oct 2021

Rearrange the letters in "new door" to make one word.

Asked by Neha on 12 Dec 2023

Solve the mathematical equation in the picture below.

Math Equation Picture

Asked by Neha on 16 May 2023


What is the next number in this matchsticks series riddle?

Next Number In Matchstick Series

Asked by Neha on 27 Apr 2021

Hot Articles

Amazing Facts

Out of the Box

The phrase “thinking outside the box” was popularised from the solution to a topographical puzzle involving 9 dots in a box shape.