A corridor has 1000 doors which are all closed.
How many doors are open after the person has walked down the corridor?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
It is obvious that we are searching for perfect squares (numbers with odd number of divisors) under 1000.
here is how you can do this in Mathematica
Floor@Sqrt@1000
but if you like to open and close doors, here is a much more difficult problem in ProjectEuler