Terry Pratchett said this quote

The intelligence of that creature known as a crowd is the square root of the number of people in it.