Everyone and their mothers had a nuclear programme at one time. Frickin Sweden had one.
Sweden was much closer to getting the bomb than Libya or Iraq ever were. In 1965 the technicians at Foa (defence research department) only needed political acceptance and 10 kilogramme of plutonium. They had everything else ready.
In all likelyhood the US decided to cover Sweden under it's nuclear umbrella in 1964 and they dropped it afterwards. That year Sweden began a sudden expansion of air bases and runways were extended to receive large strategic bombers. The connection fitting on the fuel lines from the flying refill planes was changed to NATO standard and US intelligence reports (which had previously warned against Sweden's nuclear weapons program) began to downplay the risk.
It is somewhat interesting that Palme accepted to become dependent on US nuclear protection, but there was a growing anti-nuclear sentiment in the population.
Most of the remaining Swedish plutonium was shipped to Britain in 1972 (after they had conducted thorough test series), but until then they had the capacity to relaunch the programme fairly quickly. They still kept a small "spare supply" of plutonium to 2012.
Sweden had a high technical level, ample supply of uranium and a non-war damaged industry + nukes was their only chance against the Soviets, so it was not an unreasonable idea. Sweden actually needed nukes more than Britain.