Skip to content
BetterDL

Prime implicant

Also called: prime implicants, PI, PIs

An implicant that stops being an implicant if any one of its literals is removed. It is a largest possible group of 1s.

A prime implicant is an implicant that cannot be made any bigger. Removing any one literal would double the rows it covers and take in a 0 of the function.

In the patch picture: a prime implicant is a safe patch that is as big as it can get. On a karnaugh map, it is a group of 1s that cannot be enlarged in any direction.

Why they matter. Every term of a minimal sop is a prime implicant. If a term were not prime, you could drop a literal and it would still cover only 1s, which is cheaper and covers at least as much.

But a minimal SOP does not always use every prime implicant. Once you have the primes, you choose the cheapest set that covers every 1 (a cover):

  1. A 1 covered by only one prime forces that prime into the answer. Such a prime is an essential prime implicant.
  2. Then add the cheapest primes that cover whatever is left.

Primes left out are redundant, often because they are the consensus of two chosen ones.

Finding all primes systematically is the first half of the quine mccluskey method.

A\BC00011110
0
1m0
0m1
0m3
0m2
1
1m4
1m5
1m7
0m6

Worked examples

Example

Finding all prime implicants

F(A, B, C) = Σm(0, 4, 5, 7). Find its prime implicants.

  1. 1.

    Codes: 000, 100, 101, 111.

  2. 2.

    Adjacent pairs: 0 + 4 → -00 (); 4 + 5 → 10- (); 5 + 7 → 1-1 ().

  3. 3.

    No two of these combine further (their dashes are in different places), and every minterm belongs to some pair.

  4. 4.

    Prime implicants: , and . They are the three groups on the map above.

Example

Testing one term

For the same F, is prime?

  1. 1.

    Drop A: covers rows 0, 1, 4, 5. Row 1 is a 0, so is not an implicant.

  2. 2.

    Drop : A covers rows 4–7. Row 6 is a 0, so A is not an implicant.

  3. 3.

    No literal can be removed, so is prime.

  4. 4.

    It is still not needed: and already cover rows 4 and 5. The minimal SOP is .

Common mistakes

  • Thinking a minimal SOP must use every prime implicant. Redundant primes are left out.

  • Calling a group prime when it could still be doubled into a larger group of 1s.

  • Confusing prime with essential. Every essential prime implicant is prime, but not every prime is essential.

Practice Prime implicant

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

Prime implicant is taught in Boolean Simplification and Karnaugh Maps.