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

Can you find a rabbit in the given picture?

Hidden Picture Riddle

Asked by Neha on 08 Apr 2023


There’s a one-story house in which everything is yellow. Yellow walls, yellow doors, yellow furniture. What colour are the stairs?

Asked by Neha on 12 Feb 2022

An office is divided into 8 cubicles. How many of the cubicles are painted if only 1/8 of the cubicles are painted?

Asked by Neha on 23 Feb 2022


The dirtier I get, the whiter I look. Who am I?

Asked by Neha on 12 Jan 2026

Can it be possible to build a house that has all its four walls facing towards the South?

Asked by Neha on 20 May 2024

Find out the missing number in the picture attached:

Find the Missing Number

Asked by Neha on 10 Jun 2023


There is an English word that can be used up to four times in a row without modifying the spelling and form a valid grammatical sentence.

Do you know what word is that?

Asked by Neha on 18 Aug 2024

My thunder comes before the lightning; my lightning comes before clouds; my rain dries all the land it touches. What am I?

Asked by Neha on 10 Sep 2025

An equation has been laid down using a few matchsticks. However, as you can see, the equation is not correct. Can you correct the equation if you are allowed to add or remove 5 matchsticks?

Correct the Equation

Asked by Neha on 14 May 2021


I am the fastest animal but cannot climb the tree. What am I?

Asked by Neha on 29 Oct 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.