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

In the given figure, you can see that four match sticks are used to form a square. Can you form five squares by using six matches?

Make Six Square

Asked by Neha on 14 May 2021


What does below Rebus mean ?

esgg sgeg gegs gsge

Asked by Neha on 10 May 2021

Who can jump higher than a Mountain?

Asked by Neha on 18 Oct 2023


Andrew’s doctor gives him three pills and tells him to take one every half hour. How much time will have passed by the time Andrew’s taken all three pills?

Asked by Neha on 22 Jun 2025

There are three boxes on a table. One of the box contains Gold and the other two are empty. A printed message contains in each box. One of the message is true and the other two are lies.

The first box says "The Gold is not here".

The Second box says "The Gold is not here".

The Third box says "The Gold is in the Second box".

Which box has the Gold?

Asked by Neha on 07 Feb 2021

Which of the below owl is odd one out?

Find the odd

Asked by Neha on 22 May 2021


If 5 cats catch 5 mice in 5 minutes, how long will it take one cat to catch a mouse?

Asked by Neha on 13 Sep 2021

A sundial has the fewest moving parts of any timepiece. Which has the most?

Asked by Neha on 07 Jul 2025

What time is it when an elephant sits on a fence?

Asked by Neha on 10 Jul 2025


A chicken farmer has figured out that a hen and a half can lay an egg and a half in a day and a half. How many hens does the farmer need to produce one dozen eggs in six days?

Asked by Neha on 30 Dec 2020

Hot Articles

Amazing Facts

Jigsaw puzzles

Jigsaw puzzles soared in popularity during the great depression, as they provided a cheap, long-lasting, recyclable form of entertainment.