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

One absent-minded ancient philosopher forgot to wind up his only clock in the house. He had no radio, TV, telephone, internet, or any other means for telling time. So he travelled on foot to his friend's place a few miles down the straight desert road. He stayed at his friend's house for the night and when he came back home, he knew how to set his clock. How did he know?

Asked by Neha on 29 Feb 2024


Living above a star, I do not burn
Eleven friends and they do not turn
I can just be visited in a sequence, not once or repeatedly
PQRS are my initials
Can you tell my name accurately?

Asked by Neha on 11 Jul 2021

First, think of the colour of clouds. Next think the colour of snow. Last, think of the colour of the moon. Now, what do cows drink?

Asked by Neha on 28 Apr 2022


Three people enter a room and have a green or blue hat placed on their heads. They cannot see their own hat but can see the other hats.
The colour of each hat is purely random. They could all be green, blue, or any combination of green and blue.
They need to guess their own hat colour by writing it on a piece of paper, or they can write 'pass'.
They cannot communicate with each other in any way once the game starts. But they can have a strategy meeting before the game.
If at least one of them guesses correctly they win $10,000 each, but if anyone guesses incorrectly they all get nothing.
What is the best strategy?

Asked by Neha on 05 Dec 2023

A boy purchased a book from a bookkeeper and gave him $100.
The cost of the book is $50 but the bookkeeper has no change, so he gets the change from the next shop and returns the boy his $50.

After some time the next shopkeeper came with the $100 note and told the bookkeeper that the note was a fraud, so he took the money back.

How much loss did the bookkeeper face?

Asked by Neha on 25 Dec 2025

It is a 5 letter word if you take away first letter it is something you get from sun, if you remove second letter you will get something to eat, if you remove third letter you get a word you use in pointing at and if you remove the fourth letter you get something to drink. What is it?

Asked by Neha on 17 May 2021


John and Jacob are twin brothers. One of them is a liar whereas the other one is a truth-teller.

I called their home number and one of them picked up.
I asked. 'Does John lie?' The person replied with a yes.

Whom did I talk with, John or Jacob?

Asked by Neha on 23 Nov 2024

What number comes next in this sequence:
7 8 5 5 3 4 4 _

Asked by Neha on 06 Aug 2024

Prove that twice of ten is the same as twice of eleven.

Asked by Neha on 26 Feb 2025


Which Number is the odd one out?

A) 7145
B) 2716
C) 5321
D) 4135

Asked by Neha on 10 Jan 2024

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.