>>520387781 (Cross-thread) >I can help you, anon. The speed of sound travels 343m/s. Start counting seconds from the moment of the initial flash or as close to that point as possible. Then once you hear the blast wave you stop counting. Multiply the counted seconds by 343 and you will get an estimated range on kilometres.

The blast wave from a nuclear explosion initially travels much faster than the speed of sound, so your agolrithim is incorrect.