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

John was going on a jungle trip. He asked his wife to pack something to eat, something to drink and something to burn if he feels cold in the jungle. When John opens the backpack he found just one thing in the bag. What was it?

Asked by Neha on 28 Nov 2023


I go up and I go down.
I go up towards the beautiful sky and down toward the green ground.
I am present tense.
I am past tense too
Children love me.

Who Am I?

Asked by Neha on 16 Jan 2025

The teacher told the student that if he told a lie then he will be expelled from school and if he told the truth then he still is expelled from school.

What can a student say to prevent his being expelled from school?

Asked by Neha on 17 Nov 2023


Things are just as they seem, right? Well, check again.
Can you count the number of tigers in this picture ?

Count The Tigers

Asked by Neha on 21 May 2021

What is the next number in this series?

4,12,84,3612....

Asked by Neha on 18 Mar 2023

A tree doubled in height each year until it reached its maximum height over the course of ten years. How many years did it take for the tree to reach half its maximum height?

Asked by Neha on 07 Aug 2025


I am a three digit number.
My tens digit is five more than my ones digit.
My hundreds digit is eight less than my tens digit.
What number am I?

Asked by Neha on 17 May 2021

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

Asked by Neha on 11 May 2023

A little girl goes to the store and buys one dozen eggs. As she is going home, all but three break. How many eggs are left unbroken?

Asked by Neha on 02 Mar 2022


How many points are there on the globe where, by walking one mile south, then one mile east and then one mile north, you would reach the place where you started?

Asked by Neha on 21 Apr 2022

Hot Articles

Amazing Facts

Jigsaw puzzles

Jigsaw puzzles soared in popularity during the great depression, as they provided a cheap, long-lasting, recyclable form of entertainment.