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 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


There are people and strange monkeys on this island, and you can not tell who is who (Edit: until you understand what they said - see below). They speak either only the truth or only lies.
Who are the following two guys?
A: B is a lying monkey. I am human.
B: A is telling the truth.

Asked by Neha on 12 Jul 2023

Count the squares in the matchstick puzzle below?

Count the Squares

Asked by Neha on 17 Sep 2023


Here is a mathematical expression that also secretly tells a movie name. What movie is that?

Guess Movie Name

Asked by Neha on 14 Feb 2021

How many people must be gathered together in a room, before you can be certain that there is a greater than 50/50 chance that at least two of them have the same birthday?

Asked by Neha on 16 Dec 2023

John and his team plan to rob a safe. They got just one chance to break the code else the local police will be informed. Below are clues:
A) Exactly one number is perfectly placed: 9 8 1
B) Everything is incorrect: 9 2 4
C) Two numbers are part of the code of the safe but are wrongly placed: 0 9 3
D) One number is part of the code of the safe but is wrongly placed: 1 4 7
E) One number is part of the code of the safe but is wrongly placed: 7 8 3

Asked by Neha on 27 Apr 2024


A mad serial killer kidnaps people and forces them to play the game of 2 pills with them, In this game, there are pills in the table and one of them is normal pill while the other one is deadly poisonous.
The victim will choose one pill and the killer will pick the other pill and both simultaneously will swallow the pill with water.
victim dies every time.

One day the serial killer kidnaps the Joseph and forces him to play the same game with him.

Joseph solves the mystery of the two pills and remains alive.

Explain?

Asked by Neha on 15 May 2021

The day before yesterday I was 25 and the next year I will be 28. This is true only one day in a year. What day is my birthday?

Asked by Neha on 07 Dec 2025

I have eight fingers and two thumbs but I do not live. What Am I?

Asked by Neha on 21 Mar 2024


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

Hot Articles

Amazing Facts

Challenging

There is a cryptic organization called Cicada 3301 that posts challenging puzzles online, possibly to recruit codebreakers and linguists.