The influence of dimensionality on superconductivity in carbon nanotubes