I read a book or short story where kids did not go to school or read books. When they reached a certain age they were programmed. The programming did not work on some kids and they were sent away. The kids that were sent away were really the smart kids who developed the programming tool for the other kids. What was the name of that book?