So I just realized that on the internet the number that frequently pops up with regards to the total mass of the Earth's atmosphere is 5,100,000,000,000,000,000 kilograms. For example, the number is mentioned two times on the Wikipedia page for the Earth's atmosphere, there are more examples...