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

Two brothers were watching a horror film on video late one night. One brother dozed off and dreamed that he was being chased by the crazy man from the movie, who was trying to kill him. In the dream, he hid in a cupboard. There was no sound except his heart pounding, and he had no idea where his crazed captor was. He was terrified! At that moment, the video finished, and his brother put his hand on the shoulder of his sleeping sibling to wake him. The shock at that tense moment was enough that the sleeping brother suffered a massive heart attack and died instantly. True or false?

Asked by Neha on 02 Jan 2026


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

There was a blind man. He had four socks in his drawer either black or white. He opened it and took out two socks. Now the probability that it was a pair of white socks is 1/2.

Can you find out the probability that he had taken out a pair of black socks ?

Asked by Neha on 19 Mar 2023


In a football game, Christina defeated Teresa by 2 - 0 but no man from either side scored. How can this be possible?

Asked by Neha on 08 Jan 2025

With the help clues provided in the image, can you find the 5 digit key?

Find the Key

Asked by Neha on 14 May 2021

I have teeth but i don't bite. Who Am I ?

Teeth for showpiece

Asked by Neha on 29 Mar 2021


During which month do people sleep the least?

Asked by Neha on 13 Apr 2022

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

10 people came into a hotel with 9 rooms and each guest wanted his own room. The bellboy solved this problem.
He asked the tenth guest to wait for a little with the first guest in room number 1. So in the first room, there were two people. The bellboy took the third guest to room number 2, the fourth to number 3, ..., and the ninth guest to room number 8. Then he returned to room number 1 and took the tenth guest to room number 9, still vacant.
How can everybody have his own room?

Asked by Neha on 21 Aug 2023


He loves to dance, twist and prance, he shakes his tail, and as a way he sails, wingless he flies into the sky. What is he?

Asked by Neha on 19 Aug 2025

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.