On the Complexity of Computations under Varying Sets of Primitives