I don’t think a nuclear bomb can be used for good. It can be used for evil that is less than the evil it prevents. Only in the “divert the asteroid” scenario is the proximate effect of the nuclear detonation either neutral or good.
So, you don’t consider putting a stop to evil a good?
I can think of a vew other good uses. Kicking an interplanetary craft out of the Moon’s orbit on its way to Mars might be good. Sealing off a volcano might be good. Kicking LA into the ocean would definitely be good.
Oops, did I say that last one out loud?
...and
We will find
sooner or later
if Achmed'll pray
to a glowing crater!