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

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 pet show was happening in my locality. I went down along with my kids. In that show, I noticed that all except two of the entries were cats. All except two were dogs and all except two were Monkeys.

Can you find out how many of each animals were present in that pet show?

Asked by Neha on 04 Feb 2021

John was going on a jungle trip. He asked his wife to pack something to eat, something to drink and something to burn if he feels cold in the jungle. When John opens the backpack he found just one thing in the bag. What was it?

Asked by Neha on 28 Nov 2023


There is a box full of marbles,
all but two are blue,
all but two are green,
and all but two are red.

How many marbles are in the box?

Asked by Neha on 01 Jan 2024

You have 1023 apples and 10 bags. You have to distribute these apples in these 10 bags in any way you choose. But when I ask for a certain number of apples you have to give them in terms of bags without transferring the apples from other bags. How do you distribute the apples?

Asked by Neha on 25 Jan 2021

A patient was diagnosed with some ailment. He was given five different tablets to take at night at an interval of 15 minutes.

How long will it take the patient to consume all the five tablets?

Asked by Neha on 02 Jul 2024


Can you write down eight eights so that they add up to one thousand?

Asked by Neha on 29 Sep 2021

Two brothers were watching a horror film on video late one night. One brother dozed off and dreamed that he was being chased by the crazy man from the movie, who was trying to kill him. In the dream, he hid in a cupboard. There was no sound except his heart pounding, and he had no idea where his crazed captor was. He was terrified! At that moment, the video finished, and his brother put his hand on the shoulder of his sleeping sibling to wake him. The shock at that tense moment was enough that the sleeping brother suffered a massive heart attack and died instantly. True or false?

Asked by Neha on 02 Jan 2026

How is a fly different from a mosquito?

Asked by Neha on 15 Jul 2023


I always drive my customer away.

Who am I?

Asked by Neha on 29 Oct 2024

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.