Optical Coding Theory with Prime by