Influence of dimensionality on superconductivity in carbon nanotubes