NITROGEN
Living things occupy slightly more than a billionth of the planet's nitrogen in our DNA (0.000000115%). Living things occupy 0.0023% of the planet's nitrogen overall, the lion's share of which of course is in protein. (See my assumptions below if you like.)
PHOSPHORUS
Living things are using only 0.00047% of the planet's phosphorus in our DNA - but that expands to 4.7% of the planet's phosphorus in living cells overall. This is a much more significant fraction.
Does this difference exist because life on Earth has chosen phosphorus as, effectively, energy currency to manipulate gradients? Or because nitrogen is harder to make biologically available? Even now we rely on relatively few bottlenecks to fix it.
IMPLICATIONS FOR AI TAKEOFF
There's no reason to assume that these numbers represent a global, rather than local optimum for resource utilization for replicators on Earth. That said, we've had four billion years to optimize. This is relevant because of the concern that AI taking off without regard to human welfare would disassemble the Earth into atoms for computation - the farther we are from truly optimized resource utilization, the more an intelligence explosion would be disruptive to the status quo. I found the Bar-On paper on amount of DNA in the biosphere from a link in a discussion about the computational efficiency of nucleic acids in cells. The latter paper suggests that protein translation is several orders of magnitude faster than the fastest current computers, and only an order of magnitude under the Laundauer limit. Of course, resource utilization and computing speed are two different variables, but it seems computation is getting near optimized already - and yet, no disassembly of the Earth for phosphorus. Not even 5% of the energy currency atoms are put to work! Of course, an AI would be qualitatively and quantitatively different in unpredictable ways from what came before, in which case there is no point in discussing this - but the replicators that exist in reality make the best starting point for such a discussiong.
What's more, protein translation is computation in the service of replication. It is quite likely that AIs would end up being selected in much the same way as cells have, with limited resources to be dedicated to refining the model of the universe (getting smarter.) The ivory tower AI super-minds would be dominated by the silicon bacteria. Of course, this is still no reason to think a hard AI takeoff could be disastrous for all life on Earth, an extinction like we've never seen - which the AIs themselves might not have the foresight to survive - but if they do, the best bet is that they will "revert to the mean" of all replicators, with making copies as the goal.
An imperfect analogy. In nature, you have to make do with what's there. The shapes aren't friendly for efficient packing and there are a lot more holes.
Assumptions:
I could not find estimates of the overall mass of nitrogen and phosphorus in the biosphere, so I used the percentage weights in living cells, and derived from a paper estimating the mass of carbon in the biosphere at 5.5x10^14 kg (Bar-On et al 2018), along with carbon being 18% of the atoms in living things.
For both I used 2884.6 kg/m^3 mass of the Earth's crust (weighted the differently dense continental and oceanic crusts at 0.3 and 0.7 resp.) My number for nitrogen comes from nitrogen in the atmosphere, plus nitrogen in the top meter of the Earth's crust, estimating mass of the atmosphere as 5.15*10^18 kg, of which 78.09% is nitrogen, and abundance in the crust as 0.002% by mass (there was some conflict over this between sources actually of up to an order of magnitude; but there is so little nitrogen in the crust compared to the atmosphere, about 347,000 times less using this number, that it's still a rounding error. I assume that there are an equal number of A T C and G which means 3.75xnitrogen atoms per base.
For phosphorus, I used a crustal abundance of 0.1% mass, ignoring the negligible phosphorus in the atmosphere. There is 1xphosphorus atom per base. The major "slop" in this figure occurs because different organisms have different fractions of phosphorus, for one thing since phosphorus is used in structural molecules like bone (85% of phosphorus in humans is in bone; even the same organism at different ages differs substantially, e.g. 0.5% in infants, close to 1% in adults.) Bacteria come in at 0.9% (3% dry weight, assuming 70% water mass per cell) so I used that figure, since bacteria outweigh us by a factor of a thousand, and the number is intermediate even for the values for vertebrates.
REFERENCES
Bar-On YM, Phillips R, Milo R. The biomass distribution on Earth. PNAS June 19, 2018 115 (25) 6506-6511.
P. Kempes CP, Wolpert D, Cohen Z, PĂ©rez-Mercader J. The thermodynamic efficiency of computations made in cells across the range of life. Philos Trans A Math Phys Eng Sci. 2017 Dec 28; 375(2109): 20160343.
Landenmark HKE, Forgan DH, Cockell CS. An Estimate of the Total DNA in the Biosphere. PLoS Biol. 2015 Jun; 13(6): e1002168. Published online 2015 Jun 11. doi: 10.1371/journal.pbio.1002168
Michael Schirber. Chemistry of Life: The Human Body. Livescience.com. https://www.livescience.com/3505-chemistry-life-human-body.html#:~:text=Oxygen%20(65%25)%20and%20hydrogen,%25)%20is%20synonymous%20with%20life.