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 need to move three matchsticks to form three squares. Can you do it?

MatchSticks Squares Riddle

Asked by Neha on 17 Jun 2023


Make the seating arrangement of 10 children in such a way that there are 5 rows with 4 children in each row.

Asked by Neha on 18 Mar 2026

A pregnant woman is preparing to name her seventh child. Her children's names so far are Dominique, Regis, Michelle, Fawn, Sophie, and Lara. What will she name her next child -- Jessica, Katie, Abby or Tilly?

Asked by Neha on 29 Mar 2023


What comes
Once in a Year
Twice in a Month
4 times in a Week
6 times in a Day

Asked by Neha on 24 Feb 2022

Can you name any English verb that becomes its past tense by simply rearranging the alphabets ?

Asked by Neha on 08 Sep 2021

Find the next number in the following series:
6, 14, 26, 98, __?

Asked by Neha on 16 Feb 2026


What number divided by 4 is the same as that number minus 4?

Asked by Neha on 09 Oct 2025

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

Find the missing letter in the last circle logically in the given below picture.

Apply Logic in Alphabet

Asked by Neha on 02 Apr 2024


Can you count the number of children in the picture below

Tricky Count Riddle

Asked by Neha on 28 Mar 2026

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.