Not sure if this belongs here, Chemistry, History, or some other Stack Exchange site, but I'll start it here and welcome migration to a different site if appropriate.
In doing some reading on the history of the Manhattan Project, and then subsequent later nuclear weapons research, it's obvious that a huge amount of electrical power is typically required to refine, reduce, separate, and enrich uranium and plutonium (and likely other materials as well) which go into the "boom" part of the weapon fuel. Although a nuclear explosion releases a huge amount of energy in an extremely brief period of time, how does this compare to the amount of energy that would have been used to generate the fuel material in the first place, over months and years of processing and enriching from raw materials? Obviously there are lots of variables, both in fuel refining, as well as explosive yield, and so ballpark answers are perfectly acceptable to me.
Just wondering if nuclear weapons are "energy negative", when comparing what was used to produce the weapon, compared to explosive yield.