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

There is a box full of marbles,
all but two are blue,
all but two are green,
and all but two are red.

How many marbles are in the box?

Asked by Neha on 01 Jan 2024


Yesterday I fell from 30 feet high ladder but I don't get hurt. Why?

Asked by Neha on 11 May 2023

Which tank will fill first?

Fill The Tank

Asked by Neha on 13 Jul 2021


What is the word or phrase below?
R | E | A | D

Asked by Neha on 28 Jul 2024

I am a prime number.
The double of myself is equal to the square of me.

which number am I?

Asked by Neha on 18 Jan 2025

A man died, leaving $10,000,000 for his widow, 5 sons and 4 daughters. Each daughter received an equal amount, each son received twice as much as a daughter, and the widow received three times as much as a son.

How much did the widow receive?

Asked by Neha on 17 Jan 2026


What does Alexander the Great and Winnie the Pooh have in common?

Asked by Neha on 17 Jul 2025

Which Burger Is Different in below image?

Odd Man out

Asked by Neha on 09 Feb 2023

I left my campsite and hiked south for 3 miles. Then I turned east and hiked for 3 miles. I then turned north and hiked for 3 miles, at which time I came upon a bear inside my tent eating my food! What colour was the bear?

Asked by Neha on 03 Jul 2025


Use the digits from 1 up to 9 and make 100.

Follow the rules.
=> Each digit should be used only once.
=> You can only use addition.
=> For making a number, two single digits can be combined (for example, 4 and 2 can be combined to form 42 or 24)
=> A fraction can also be made by combining the two single digits (for example, 4 and 2 can be combined to form 4/2 or 2/4)

Question: how can we do this?

Asked by Neha on 13 Jun 2023

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.