We investigate the behaviour of a single-walled Carbon Nanotube under axial compressive line load applied at both edges. The expected buckling response is studied by application of a molecular computation model. We formulate a global potential and search for its minimum to obtain the equilibrium configuration. The critical nanotube diameter, when local shell buckling occurs, is measured with two parameters: the value of compression loading and tube diameter.