A nuclear-powered sub can stay submerged for months — it's the food that runs out first.