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

1 dollar = 100 cent
= 10 cent x 10 cent
= 1/10 dollar x 1/10 dollar
= 1/100 dollar
= 1 cent

=> 1 dollar = 1 cent

solve this tricky problem?

Asked by Neha on 12 Oct 2024


Can you find out a way through which you can make five squares out of the given figure by moving just six match sticks?

Matchstick Game

Asked by Neha on 01 Apr 2025

I can be cracked, made, told, and played. What am I?

Asked by Neha on 16 Aug 2025


You see a boat filled with people, yet there isn’t a single person on board. How is that possible?

Asked by Neha on 12 Feb 2022

There are two insects on a tile. Insect X is sitting on one side of the tile (point A) and Insect Y is sitting opposite on the other side of the tile (point B). Now both of them decide to change their position and thus X starts crawling to point B and Y starts crawling to point A. When they meet and pass each other in between, X takes 20 seconds to reach B and Y takes just 5 seconds to reach A.

Can you calculate the total time each of the insects took to change their positions?

Asked by Neha on 25 Feb 2026

Make the seating arrangement of 10 children in such a way that there are 5 rows with 4 children in each row.

Asked by Neha on 18 Mar 2026


A doctor and a boy were fishing. The boy was the doctor’s son, but the doctor was not the boy’s father. Who was the doctor?

Asked by Neha on 04 Mar 2022

Can you convert the number zero(0) into a positive number using just one mathematical operator ?

Asked by Neha on 16 Mar 2024

To tease, King Akbar told his most clever advisor Birbal to give his daughter one thing that she can eat when hungry, drink if she feels thirsty and can burn if she feels cold. King Akbar was shocked when Birbal gave Akbar's daughter one such thing that satisfies all of the above.

What did Birbal give to Akbar's daughter?

Asked by Neha on 28 Jan 2023


Thomas has missed an excessive number of days of school, so he must meet with Principal Davis. Mr. Davis asks him "Why on Earth have you missed so many days?" Thomas replies "There just isn't enough time for school. I need 8 hours of sleep a day, which adds up to about 122 days a year. Weekends off is 104 days a year. Summer vacation is about 60 days. If I spend about an hour on each meal, that's 3 hours a day or 45 days a year. I need at least 2 hours of exercise and relaxation time each day to stay physically and mentally fit, adding another 30 days. Add all of that up and you get about 361 days. That only leaves 4 days for school." The principal knows Thomas is full of it, but can't figure out why. Where is Thomas going wrong?

Asked by Neha on 03 Feb 2026

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.