How do you plan to solve it?
module nand4_prim (input a, input b, input c, input d, output y); nand (y,a,b,c,d); endmodule