He attended the "Lycée Fontanes" in Paris from 1868 to 1878. There he was given the 1877 prize for school mathematics, for the solution of a mathematical problem. When he was nineteen, he studied at École Normale Supérieure (ENS). He read many philosophy books, especially Herbert Spencer.