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

Five thieves looted a bank and they ran away in a car. The bank staff informed the police and they began the search of their car in their jeep. They found them on a road and chased them eventually catching them. The light that is used to fill the number plate was broken on the thieves' car. Also, the headlights of the jeep police were not working. How were the police able to catch the thieves then?

Asked by Neha on 28 Nov 2024


He does not have any heart but still, He manages to live.
If you kill him, you will eventually die but yet you kill him.
He cannot run, who is He?

Asked by Neha on 21 Dec 2025

I am the one who remains awake when you sleep. But I need to rest when you awake. Who Am I?

Asked by Neha on 23 Jan 2025


People are waiting in line to board a 100-seat aeroplane. Steve is the first person in the line. He gets on the plane but suddenly can't remember what his seat number is, so he picks a seat at random. After that, each person who gets on the plane sits in their assigned seat if it's available, otherwise, they will choose an open seat at random to sit in. The flight is full and you are last in line. What is the probability that you get to sit in your assigned seat?

Asked by Neha on 13 Mar 2024

Which is heavier: a ton of bricks or a ton of feathers?

Asked by Neha on 28 Feb 2022

A mathematician couple was having a Frappuccino in Starbucks sitting opposite to each other. Suddenly the guy noticed the text written on the paper in front of them and exclaimed that it was wrong. The girl denied it and said it is appropriate. Both are correct. What is written on the paper?

Asked by Neha on 11 Jul 2023


You walk into a room where there are three primates held in their respective cages:
1) A lion who is eating the flesh of a goat.
2) An orangutan who is playing with blocks.
3) A donkey who is sitting idle.

Who is the most intelligent primate in the room?

Asked by Neha on 16 Sep 2023

An octopus has 8 legs. A hippogriff has 6 legs and 2 pairs of wings. A sphinx has 6 legs and one pair of wings. Now we have all 3 kinds and a total of 18 insects in a cage. We have a total of 118 legs and 20 pairs of wings. How many insects do we have of each kind?

Asked by Neha on 13 Oct 2024

Tarang football website was hacked by one of the players. Jack, the coach of Tarang has pointed out five players as the possible hacker.
Each suspected player made three statements from each suspected player and out of which two are true and one is false.

Joseph
A) I have not hacked the website.
B) I know nothing about hacking.
C) John did it.

Hazard
A) I have not hacked the website.
B) The website was attacked by one of the players.
C) I hate Shelly

Remy
A) I have not hacked the website.
B) I have never seen Oscar in my entire life.
C) I am sure John did it.

John
A) I have not hacked the website.
B) I am sure Oscar did it.
C) Joseph was lying when he said he did it.

Oscar
A) I have not hacked the website.
B) I am sure Hazard did it.
C) I used to be friend with Remy.

So who hacked the website?

Asked by Neha on 27 Jun 2021


There was a man he lives in a hotel each morning he presses the first floor button each evening if there is a person in the elevator he asks him to press the 10 floor button if there is no one in the elevator he takes the stairs why.

Asked by Neha on 17 Mar 2022

Hot Articles

Amazing Facts

No Solution

In 2007, a puzzle was released and $2 million prizes were offered for the first complete solution. The competition ended at noon on 31 December 2010, with no solution being found. Wiki