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

Solve the mathematical equation in the picture below.

Math Equation Picture

Asked by Neha on 16 May 2023


John, a 5-year-old boy, was really fond of the chocolates. He asked his Mother to give him some money to buy his favourite chocolates. His Mother gave him $45. He went to the shopkeeper and asked, "How much is one chocolate for?". The shopkeeper said $3 for one chocolate. Also, if you give me the wrappers of three chocolates, I will give you one for the exchange.
In total, how much chocolate could John eat?

Asked by Neha on 02 Feb 2026

Make a sentence consisting of three words that have the whole alphabet.

Asked by Neha on 11 Dec 2025


Decode this picture on T-Shirt and tell what it says ?

Learn Decoding

Asked by Neha on 11 Mar 2021

Quickly Solve this riddle

7 - 4 + 3 * 0 + 1 = ?

Asked by Neha on 04 Dec 2024

A doctor and a boy were fishing. The boy was the doctor’s son, but the doctor was not the boy’s father. Who was the doctor?

Asked by Neha on 04 Mar 2022


Your last good ping-pong ball fell into a narrow metal pipe embedded one foot deep in concrete.
How can you get it out undamaged, if all the tools you have are your tennis paddle, shoe laces, and plastic water bottle, which does not fit into the pipe?

Asked by Neha on 10 Nov 2024

How many triangles can you count in the figure given?

How Many Triangles Puzzle

Asked by Neha on 06 Dec 2025

Solve the equation in the image by looking at the pattern closely.

Match the Box

Asked by Neha on 15 Feb 2024


Five teams were competing in cricket where they faced each other exactly once. After the tournament, the following is the point table.

DareDevils 6
SuperKings 5
Royals 4
Sunrisers 2
Riders ?

How many points did Riders end up with?

Asked by Neha on 14 Nov 2025

Hot Articles

Amazing Facts

Challenging

There is a cryptic organization called Cicada 3301 that posts challenging puzzles online, possibly to recruit codebreakers and linguists.