In answer to Franz' claim below, oft made, that the bombs dropped on Hiro and Naga were made to avoid massive allied casualties ala an Operation Olympic-style invasion.
The only problem with this notion, deeply held by the public at the time, was that while the scientists working on the it, including many ex-pat Germans, thought the secret project was necessary to head off a similar Nazi bomb, the proto-cold warriors in the Pentagon were actually planning from the get-go to explode bombs come what may to intimidate Russia. The intent from the beginning was to demonstrate US military supreamacy and any question of military necessity was completely secondary.
What was sold to the public was the idea that perhaps a million allied soldiers might've perished rooting out a fanatical resistance on the Japanese mainland. However, this assumes the strange notion that such an invasion was necessary. Japan in 1945 was utterly defeated, with no prospect for recovery. It's few remaining cohesive military units were isolated from the home islands and about to be crushed on the Asia mainland. It no longer had any war-fighting resources, having depended on it's conquered territories for these in the past. Essentially ALL Japanese shipping was at the bottom of the Pacific; US subs and carrier task forces raged increasingly unchallened on the edges of Japan's shores, and it's cities were daily laid to waste in virtually-unopposed mass bombing raids which wiped out tens of thousands in minutes. That mountainous land, at least back then, heavily depended on local sea transport for moving basic goods like food.
Very likely the island would've starved to capitulation by winter if not earlier. Only a group of mad men would've insisted on slaughtering hundreds of thousands of his own men when simply waiting would've done the job.
But hey, they had this neat, expensive little bomb over here, and those nasty Reds to keep at bay...

