Prisoners got freed

100 prisoners are stuck in the prison in solitary cells. The warden of the prison got bored one day and offered them a challenge. He will put one prisoner per day, selected at random (a prisoner can be selected more than once), into a special room with a light bulb and a switch which controls the bulb. No other prisoners can see or control the light bulb. The prisoner in the special room can either turn on the bulb, turn off the bulb or do nothing. On any day, the prisoners can stop this process and say "Every prisoner has been in the special room at least once". If that happens to be true, all the prisoners will be set free. If it is false, then all the prisoners will be executed. The prisoners are given some time to discuss and figure out a solution. How do they ensure they all go free?




Similar Riddles

There is a box in which distinct numbered balls have been kept. You have to pick two balls randomly from the lot.

If someone is offering you a 2 to 1 odds that the numbers will be relatively prime, for example
If the balls you picked had the numbers 6 and 13, you lose $1.
If the balls you picked had the numbers 5 and 25, you win $2.

Will you accept that bet?

Asked by Neha on 11 Mar 2023


Which alphabet is a part of our body?

Asked by Neha on 03 Nov 2023

Two guards were guarding the camp.Guard-1 was looking towards the south to make sure no threat is coming from the road.Guard-2 was looking at the north to make sure no threat is coming from the top. Suddenly Guard-1 ask the Guard-2 why he is smiling?How Guard-1 knows that Guard-2 is smiling?

Asked by Neha on 30 May 2023


I noticed one of the words in the oxford dictionary is spelled incorrectly. What about you?

Asked by Neha on 24 Oct 2023

What's the best place to go shopping in the ocean?

Asked by Neha on 31 Oct 2024

Who is that with a neck and no head, two arms and no hands? What is it?

Asked by Neha on 27 Mar 2022


A dying old man wants to divide his entire land between his only two sons. Since his only wish is to treat them as equal as both of them have been too good to him, he wants to divide his land equally between them. The problem is that the land is significantly irregular in shape and thus there is no choice of cutting them into two equal halves.

Can you help him divide the land in a manner that both of his sons will be happy?

Asked by Neha on 20 Jun 2023

Why did Navjot Singh Sidhu put the new January calendar in the freezer

Asked by Neha on 01 Dec 2024

What time is it when an elephant sits on a fence?

Asked by Neha on 10 Jul 2025


How can you write nineteen in a manner that if we take out one, it becomes twenty?

Asked by Neha on 23 Nov 2023

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.