The rate of growth of the number of prime alternating links and tangles