We show that integer partitions, the fundamental building blocks in additive number theory, detect prime numbers in an unexpected way. Answering a question of Schneider, we show that the primes are the solutions to special equations in partition functions. For example, an integer n ≥ 2 is prime if and only if [Formula: see text]where the [Formula: see text] are MacMahon's well-studied partition functions. More generally, for MacMahonesque partition functions [Formula: see text] we prove that there are infinitely many such prime detecting equations with constant coefficients, such as [Formula: see text].