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

Always in you, Sometimes on you;

If I surround you, I can kill you.

What am I?

Asked by Neha on 09 Apr 2022


If six children and two dogs were under an umbrella, how come none of them got wet?

Asked by Neha on 07 Mar 2022

Spot 5 differences in two Christmas tree below:

Christmas Tree

Asked by Neha on 06 Jul 2021


Can you find the dog hidden in a group of pandas?

Dog amongst Pandas

Asked by Neha on 16 Feb 2025

If we add four times the age of John four years from now to five times his age five years from now we get ten times his current age.

How old will John be two years from now?

Asked by Neha on 19 Jan 2025

There are 100 bulbs in a room. 100 strangers have been accumulated in the adjacent room. The first one goes and lights up every bulb. The second one goes and switches off all the even-numbered bulbs - second, fourth, sixth... and so on. The third one goes and reverses the current position of every third bulb (third, sixth, ninth? and so on.) i.e. if the bulb is lit, he switches it off and if the bulb is off, he switches it on. All the 100 strangers progress similarly.

After the last person has done what he wanted, which bulbs will be lit and which ones will be switched off?

Asked by Neha on 14 May 2026


When Jack was six years old he hammered a nail into his favourite tree to mark his height. Ten years later at age sixteen, Jack returned to see how much higher the nail was. If the tree grew by five centimetres each year, how much higher would the nail be?

Asked by Neha on 17 May 2021

John and Jill are madly in love with each other. To remind Jill of his pure love, John wants to send her a ring by post but in their country where burglary is quite prominent, any package that is not locked comes under the risk of being stolen for the contents.

John and Jill possess many padlocks but neither one of them has the other key.

Can you find a way John can send the ring to Jill safely?

Asked by Neha on 03 Dec 2025

The measurement of time, That can't be found on a clock, But can be looked upon on a map.

Who is He ?

Asked by Neha on 30 Jan 2021


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

Hot Articles

Amazing Facts

Jigsaw puzzles

Jigsaw puzzles soared in popularity during the great depression, as they provided a cheap, long-lasting, recyclable form of entertainment.