Peirce's Ph.D. student Christine Ladd-Franklin found the truth table in Tractatus Logico-Philosophicus Proposition 5.101, 40 years earlier than Wittgenstein. Christine Ladd (1881), "On the Algebra of Logic", p.62, Studies in Logic, C. S. Peirce ed., 1883