How do the lifespans of a hot blue star (30,000 K) and a cool red dwarf (3,000 K) generally compare?

Answer

The blue star survives much shorter

A hot blue star might only survive for 10 million years, whereas a low-mass red dwarf burning coolly can remain stable on the main sequence for trillions of years.

How do the lifespans of a hot blue star (30,000 K) and a cool red dwarf (3,000 K) generally compare?
astronomycolorstaryoung