Design a state sequencer using D flip-flops and NAND gates that counts Prime BCD (0-9) numbers.
The unused states have to be taken care of in such a way that Even numbered unused states will go to state 7 and Odd numbered states will go to state 3.
The combinational logic portion of the circuit should use NAND and NOT gates only.