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

What is the last thing you take off before bed?

Asked by Neha on 29 Aug 2025


Can you identify the famous TV character from the rebus below?

Uncover TV character

Asked by Neha on 22 Nov 2023

Christina, Allison and Lena are 3 daughters of John a well-known Mathematician, When I asked John the age of their daughters. He replied "The current age of her daughters is prime. Also, the difference between their ages is also prime."

How old are the daughters?

Asked by Neha on 05 Aug 2023


At a bar, three friends, Mr Green, Mr Red and Mr Blue, were having a drink. One man was wearing a red suit; one a green suit; and the other a blue suit. 'Have you noticed,' said the man in the blue suit, 'that although our suits have colours corresponding to our names, not one of us is wearing a suit that matches our own names?' Mr Red looked at the other two and said, 'You're absolutely correct. What colour suit is each man wearing?

Asked by Neha on 03 Dec 2023

James Bond is caught up in a mysterious scenario where the evil villain has him blindfolded. He somehow breaks through the handcuffs but is unable to get the blindfold off. Upon searching, he comes across a bow and 3 arrows. He can hear the villain speak, and thus tries to take a shot at him. He launches the first arrow, it misses the villain. He then launches the second arrow and it misses by a greater margin.

What is the probability that this third shot our James bond takes will be worse than the second shot?

Asked by Neha on 21 Jun 2023

What is both possible and impossible at the same time?

Asked by Neha on 15 Apr 2022


There are two beautiful yet remote islands in the South Pacific. The Islanders born on one island always tell the truth, and the Islanders from the other island always lie.
You are on one of the islands and meet three Islanders. You ask the first which island they are from in the most appropriate Polynesian tongue, and he indicates that the other two Islanders are from the same island. You ask the second Islander the same question, and he also indicates that the other two Islanders are from the same island.
Can you guess what the third Islander will answer to the same question?

Asked by Neha on 03 Jan 2026

The more of this there is, the less you see. What is it?

Asked by Neha on 19 May 2022

He runs but never walks. Murmurs, but never talks. Has a bed, but never sleeps. And has a mouth, but never eats?

Asked by Neha on 24 Jul 2025


A man is trapped in a room. The room has only two possible exits doors. Through the first door there is a room constructed from magnifying glass. The blazing hot sun instantly fries anything or anyone that enters. Through the second door there is a fire-breathing dragon. How does the man escape?

Asked by Neha on 09 Jan 2021

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.