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

What does this mathematical rebus means ?

Maths Riddle

Asked by Neha on 01 Apr 2021


I am a word that begins with the letter “i.” If you add the letter “a” to me, I become a new word with a different meaning, but that sounds exactly the same. What word am I?

Asked by Neha on 19 Mar 2025

There is a number which when you multiply by 3 and subtract 2 from the result, then the resulting number is the reverse of the actual number.

What is the smallest number that stands true on the statement?

Asked by Neha on 20 Aug 2023


There’s a girl who has a large family. She has an equal amount of brothers and sisters, but each brother only has half as many brothers and sisters. What’s the correct amount of brothers and sisters?

Asked by Neha on 05 Jun 2025

A number can be multiplied by multiple of nine
i.e 9 18 27 36 45 ...

and the resulting number consist of only one digit.

Can you identify the number ?

Asked by Neha on 07 May 2023

There are five men, let's say Tarun Harish Lavesh, Manoj, and Manish. All of them have a dot mark on their forehead. They can't see the dots on their forehead but can see the ones on others. The owner of WHITE Dot is an honest person and will never lie, while the owner of BLACK Dot always tells the lie.

This is the statement from Tarun Harish Lavesh and Manish:
Tarun: 'I see 3 whites and 1 black'
Harish: 'I see 4 black'
Lavesh: 'I see 3 black and 1 white'
Manish: 'I see 4 white'

What colour is the dot on each of Tarun Harish Lavesh, Manoj, and Manish's forehead?

Asked by Neha on 09 May 2026


I am a type of word that is spelt incorrectly or used differently, on purpose for humour. What am I?
Hint 1: You can find me in a joke.
Hint 2: I am a play on words.

Asked by Neha on 28 Sep 2025

Move four matchsticks to the below square to form three squares?

Matchsticks Square

Asked by Neha on 09 Oct 2023

As easy as you can get into me, it is as hard to get out of me.

Do you know what I am?

Asked by Neha on 23 Apr 2023


Given below is simple addition with a defined pattern pattern:
7 + 7 = 2
8 + 8 = 4
8 + 5 = 1
6 + 9 = 3
10 + 11 = 9

Can you analyze the pattern and find out the answer for:

4 + 9 = ?

Solve the Addition

Asked by Neha on 05 Apr 2021

Hot Articles

Amazing Facts

Gambling

In Canada, a mathematical puzzle must be solved in order to win the lottery to classify it as a “game of skill” not gambling.