A new 2-D optical orthogonal codes(OOC) named PC/OCS is constructed by using prime code(PC) for time spreading and onecoincidence sequence(OCS) for wavelength hopping.Cross-correlation performance of PC/OCS is analyzed.Compared with PC/PC,the number of wavelengths for PC/OCS is not limited to a prime number.PC/OCS can be constructed flexibly,and also can use available wavelengths adequately.When the number of wavelengths is larger than prime number,PC/OCS not only has large code cardinality,but also has better cross-correlation performance.Theoretical analysis shows that PC/OCS can reduce the bit error rate(BER) of MW OCDMA networks.