GATE Computer ScienceHardGATE CS (PYQ pattern)

F(A,B,C,D) = 1 exactly when the unsigned number ABCD (A is the MSB) is a prime. How many literals are there in the minimal sum-of-products of F?

  1. A. 14
  2. B. 12
  3. C. 10
  4. D. 16

Correct answer: B. 12

Primes below 16: 2, 3, 5, 7, 11, 13. Essential primes: A'B'C (2,3), B'CD (3,11), BC'D (5,13). Minterm 7 still needs A'CD or A'BD. Either way 4 terms of 3 literals = 12 literals.

More Digital Logic questions

Exams that ask this topic