Principal in the School

A high school has a strange principal. On the first day, he has his students perform an odd opening day ceremony:

There are one thousand lockers and one thousand students in the school. The principal asks the first student to go to every locker and open it. Then he has the second student go to every second locker and close it. The third goes to every third locker and, if it is closed, he opens it, and if it is open, he closes it. The fourth student does this to every fourth locker, and so on. After the process is completed with the thousandth student, how many lockers are open?

Principal in the School




Similar Riddles

I have holes on the top and bottom. I have holes on my left and on my right. And I have holes in the middle, yet I still hold water. What am I?

Asked by Neha on 17 May 2021


Give it food and it will live; give it water and it will die.

Asked by Neha on 17 Dec 2023

Rectify the following equality 101 - 102 = 1 by moving just one digit.

Mathematical Signs Magic

Asked by Neha on 08 Mar 2021


Three cars are driving on a track that forms a perfect circle and is wide enough that multiple cars can pass anytime. The car that is leading in the race right now is driving at 55 MPH and the car that is trailing at the last is going at 45 MPH. The car that is in the middle is somewhere between these two speeds.
Right now, you can assume that there is a distance of x miles between the leading car and the middle car and x miles between the middle car and the last car and also, x is not equal to 0 or 1.
The cars maintain their speed till the leading car catches up with the last car and then every car stops. In this scenario, do you think of any point when the distance between any two pairs will again be x miles i.e. the pairs will be x distance apart at the same time ?

Asked by Neha on 08 May 2021

Here is a conversation between a couple who both are software professionals.

Husband: Hey! What is your date of birth?
Wife Replied Angrily: It is 591062400
Husband after doing some calculations replied, "Got It".

What is the DOB of the wife?

Asked by Neha on 20 Feb 2025

John walks into the daily grocery shop and steals a $100 bill from the shop. An hour later John returns to the shop and buys some daily products for $40. John pays the owner the $100 bill and therefore the owner returns him $60.

How much money did the owner lose?

Asked by Neha on 02 Jun 2026


A word I know has six letters it contains, remove one letter and 12 remain. What is it?

Asked by Neha on 23 Mar 2025

You need to pick one entry from pot A and one from pot B to have a perfect match. Can you do it?

Football World Cup 2014

Asked by Neha on 22 Aug 2021

A few friends are enjoying their sea voyage in a boat full of apples. On the way, they felt hungry and thus decided to eat the apples. Together, they ate two dozen of apples. When they have eaten the apples, will there be any change in the water level?

Asked by Neha on 06 May 2021


Find The Next Number in the series:

12 13 15 17 111 113 117 119 123 ?

Asked by Neha on 01 Dec 2023

Hot Articles

Amazing Facts

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.