Optical Coding Theory with Prime door