Professional Documents
Culture Documents
Foundations of Computer Science-CS201
Foundations of Computer Science-CS201
(b) For the circuit above, draw the truth table for the output of each gate.
2. A prime number is an integer p > 1, that cannot be divided by any other integer
except 1 and itself. A logic circuit takes 4 inputs a, b, c, d that form a binary
number as input. The output z is equal to “1” if the number formed by the input is
a prime number.