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

A small town is visited by an ice-cream truck every day. On the first day of February, the truck visits as usual and 5 children, one from each of the first 5 houses on the street buys an ice cream that is of the different flavor from each other along with a completely different topping.

Go through the details below and find out which child lives in which house and bought which ice-cream flavor with which topping:

1. Jim lives between the child who bought the Raspberry topping and the child who bought mango ice cream.

2. Joyce, whose house has an even number, bought the cherry topping. Nancy does not live next to Joyce.

3. The blackcurrant ice cream had no topping.

4. The child who lives in house number 2 had the butterscotch ice cream. The child in house number 3 did not have chocolate ice cream.

5. Mike had banana ice cream. He hates banana cherry.

6. The child who had the cashew topping lives in house number 5. Dustin does not live in house number 4.

Please note that the odd numbered houses and the even numbered houses are located on the exactly opposite sides of the street.

Asked by Neha on 27 Jul 2021


Below is the sum of symbols in each row and column in the figure. Analyzing the figure, can you find out the value of the symbols?

Value of the Symbols

Asked by Neha on 12 Aug 2023

I make two people out of one. What am I?

Asked by Neha on 29 Mar 2022


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

In a competitive exam, each correct answer could win you 10 points and each wrong answer could lose you 5 points. You sat in the exam and answered all the 20 questions, which were given in the exam.
When you checked the result, you scored 125 marks on the test.

Can you calculate how many answers given by you were wrong?

Asked by Neha on 08 Apr 2025

John has eleven friends. He has a bowl containing eleven apples. Now He wants to divide the eleven apples among his friends, in such a way that an apple should remain in his bowl.
How can He do it?

Asked by Neha on 05 Mar 2025


A Japanese ship is sailing in the Indian Ocean. The captain of the ship feels tired and decides to take shower to be rejuvenated. He goes to take the shower after keeping his diamond-studded Rolex watch and gold chain on the table.
When he comes back after 15 minutes, he finds them missing. There are 4 crew members on the ship and he calls them one by one to ask them what they were doing in that duration.

Following are the answers:
1. Crew 'A' who is the cook replies that he was cooking mutton for the crew members.
2. Crew 'B' who is a housekeeper tells that he was sleeping in his room.
3. Crew 'C' who is the engineer says that he was checking on the generator.
4. Crew 'D' who is another housekeeper says that he was correcting the hoisted flag that was put upside down.

It took only a couple of seconds for the captain to find the thief. Can you find the thief too?

Asked by Neha on 03 Jan 2024

In the following picture, E is going to slide the object down and as per the terrain and the physics, the round object is going to travel all the way till the end. Now, can you analyze who all people will die when it happens?

Who All Dies

Asked by Neha on 21 Mar 2021

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

Asked by Neha on 28 Feb 2022


With pointed fangs I sit and wait; with piercing force I crunch out fate; grabbing victims, proclaiming might; physically joining with a single bite. What am I?

Asked by Neha on 13 Mar 2025

Hot Articles

Amazing Facts

Out of the Box

The phrase “thinking outside the box” was popularised from the solution to a topographical puzzle involving 9 dots in a box shape.