I am trying to figure out how many primitive operations there are in this code and how many primitive operations are being executed over the runtime of this algorithm: