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

What is both possible and impossible at the same time?

Asked by Neha on 15 Apr 2022


You walk into a room that contains a match, a kerosene lamp, a candle and a fireplace. What would you light first?

Asked by Neha on 16 May 2022

John and Jill are madly in love with each other. To remind Jill of his pure love, John wants to send her a ring by post but in their country where burglary is quite prominent, any package that is not locked comes under the risk of being stolen for the contents.

John and Jill possess many padlocks but neither one of them has the other key.

Can you find a way John can send the ring to Jill safely?

Asked by Neha on 03 Dec 2025


What do you call a fish without an eye?

Asked by Neha on 21 Apr 2023

Different lights make me strange by changing me into different sizes. What am I?

Asked by Neha on 09 Sep 2025

A newspaper is supposed to have 60 pages, but pages 24 and 41 are missing.
Which other pages won't be there?

Asked by Neha on 12 Apr 2024


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

If "P" means "-", "Q" means "/", "R" means "+", and "S" means "*" then find the value of the following:

21 Q 7 R 9 S 10 P 13

Asked by Neha on 16 Oct 2025

10+10 and 11+11 can give you the same answer.

Explain how?

Asked by Neha on 07 Aug 2021


It spends most of its day eating white, but when it’s quick enough, it gets to eat fruit and sometimes some blue things. It’s in a dark room, where the walls are blue, it runs from a ghost that roams the halls and haunts it all the time. What is it?

Asked by Neha on 30 May 2025

Hot Articles

Amazing Facts

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.