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

When is the top of a mountain similar to a savings account?

Asked by Neha on 18 Aug 2025


I throw two dice simultaneously.

What is the probability of getting a sum as 9 of the two numbers shown?

Asked by Neha on 08 Jun 2023

Which statement is true out of the following?
One statement here is false.
Two statements here are false.
Three statements here are false.

Asked by Neha on 21 Feb 2026


Can you find out a way through which you can make five squares out of the given figure by moving just six match sticks?

Matchstick Game

Asked by Neha on 01 Apr 2025

A certain street contains 100 buildings. They are numbered from 1 to 100. How many 9's are used in these numbers?

Asked by Neha on 29 Mar 2024

In the image below, you can see two glasses and two matchsticks.You need to move four matchsticks in such a manner that the crosses come inside the glasses. Note: you cannot move the crossed.

Fun With Matchsticks

Asked by Neha on 13 Dec 2023


A mules travels the same distance daily.
I noticed that two of his legs travels 10km and the remaining two travels 12km.
Obviously two mules legs cannot be a 2km ahead of the other 2.

The mules is perfectly normal. So how come this be true ?

Asked by Neha on 08 May 2021

What is the next shape from answers A, B, C, and D figure?

Next Shape Riddle

Asked by Neha on 20 Jan 2024

In particular commonwealth games, a female participant won silver and gold medals for a single event.

How can this be possible?

Asked by Neha on 26 Feb 2024


By removing one matchstick and adding one matchstick, can you convert the word "ZOO" to an animal name?

Zoo Matchsticks Riddle

Asked by Neha on 27 May 2023

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.