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 a wheel has 54 spokes, how many spaces are there between the spokes?

Asked by Neha on 27 Sep 2021


Two friends were betting. One said to the other, "The coin will be flipped twenty times and each time the coin lands on the head, I will give you $2 and each time it lands on the tale, you will give me $3." After flipping the coin twenty times not a single penny was exchanged among them.

How many times did the coin land on heads?

Asked by Neha on 28 Jan 2025

What is black when you buy it, red when you use it, and gray when you throw it away?

Asked by Neha on 06 Jan 2021


Can you decipher the two rows to find the hidden word?


Make the Word

Asked by Neha on 14 May 2021

What number should come in place of the question mark below?

Logical Number in Center

Asked by Neha on 27 Aug 2024

What is red and smells like blue paint?

Asked by Neha on 22 Jul 2025


A man plots the murder of his wife. His plan is full proof. Nobody saw them leaving their house. He stabbed her with a knife while driving. She died on the spot. He threw her body in a valley. He threw the knife carefully wiping his finger prints on a random garbage bin. Then he went back to his home and no one was watching him this time as well.

After an hour, he was called by the local police department who informed him that his wife was murdered. They asked him to reach the scene of crime immediately. But as soon as he arrived at the crime scene, he was arrested by them.

How did the police know that he himself is the murderer?

Asked by Neha on 01 Aug 2021

I am green and found in the forest and have needles instead of leaves. What am I?
Hint 1: It can be used for Christmas decorations.
Hint 2: I have a strong, scent that is used in air fresheners.

Asked by Neha on 29 Sep 2025

What is in seasons, seconds, centuries and minutes but not in decades, years or days?

Asked by Neha on 03 Nov 2025


Can you find the next number in the below sequence
3 , 7 , 10 , 11 , 12 , 17 ?

Asked by Neha on 04 Mar 2025

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.