There are 500 children in a school. For a P.T. drill they have to stand in such a manner

There are 500 children in a school. For a P.T. drill they have to stand in such a manner that the number of rows is equal to number of columns. How many children would be left out in this arrangement?

image