I was asked this recently and wasn't sure. The power of the sun is much more powerful than that of a Nuclear explosion but the question was what is the worst that could happen, we are assuming a situation where the nuclear bomb wasn't itself immediately destroyed by proximity of the sun for whatever reason.
So, for example, if it was near the surface, could that cause a massive sun spot or similar which could disrupt electronics
b.t.w. my background isn't a physics one :-)
thanks