The problem
The primes between 0 and 15 are 2, 3, 5, 7, 11, and 13. (1 isn't considered prime, and 0 obviously isn't.) That's six required 1s scattered across sixteen possible inputs, with no repeating bit pattern to lean on the way there would be for, say, "is this number even."
| Value | Binary | Prime? |
|---|---|---|
| 0 | 0000 | 0 |
| 1 | 0001 | 0 |
| 2 | 0010 | 1 |
| 3 | 0011 | 1 |
| 4 | 0100 | 0 |
| 5 | 0101 | 1 |
| 6 | 0110 | 0 |
| 7 | 0111 | 1 |
| 8-10, 12, 14, 15 | — | 0 |
| 11 | 1011 | 1 |
| 13 | 1101 | 1 |
The minimization
Grouped and verified against the solver:
Four overlapping 2-cell groups, each picking up part of the scattered prime set. Notice every term includes C — every prime in this range except 2 is odd, and even 2 (0010) still has its C bit set, so C=1 turns out to be a necessary condition across the entire required set, which is why it appears in every single term.