If you have Maple handy, this one-liner does the trick:
a
Of course the interesting part is the code for isprime(). You can start here if you want to know how it's done.
Let's define "the surface of the earth" by the first meter of atmosphere, and let's see by how much we could warm that much air.
Air has a heat capacity of
Earth has an area of 510 million square kilometers, that is 5.1e14 m^2. (source)
Total nuclear arsenal is roughly 5 gigatons of TNT, that is 5 times 4.184e18 J or 2.6e19 J (source)
So, we could warm one meter of atmosphere by (2.6e19 / (1.3e3 * 5.1e14)) K or about 40 K.
Not enough to kill anything but the lamest creatures but to be honest, I expected much much less than that. Of course, that's assuming all the energy goes into heating a layer of air covering the globe, which isn't what would happen but still, 40 K over the whole world, holy shit.
At "about a fourth or less the capacity of full-size nuclear units", I'm sorry but it's still too large.
It just won't fit in my backyard, even if I try.
Why the Giant Impactor Theory assumes a different isotope mix for the impactor?
From what I understand, they had to have rocks brought back from the Moon to actually measure their isotope mix, so my guess is that we don't accurately know the isotope mix of anything besides the Earth and the Moon. How do we know it isn't the same mix everywhere in the solar system?
Disclaimer: I'm clueless about all this, I'm only asking questions.
What's wrong with "FooBar foo = null; try { foo = new FooBar(); foo.dosomething();} finally {if (foo != null) foo.freeResources(); foo = null;}"?
Verbosity. Equivalent C++ for that is "{ FooBar foo; foo.doSomething(); }"
Or even "Foobar().doSomething();" in this case.
I can do more work in one line of Python than you can do in 100 lines of C.
I think a few IOCCC winners would disagree with you on this.
I just had this vision of a future where captchas are like:
"We need to verify that you are human. Please violate the Third Law Of Robotics."
I like it better phrased the other way around.
Any technology distinguishable from magic isn't sufficiently advanced.
You are likely correct.
Oh no, that's the worst kind of correct!
If you solve the energy problem (ie, you can produce eco-friendly electricity cheaply enough), you can make pretty much any hydrocarbons you want out of CO2, water and electricity. Efficiency won't be perfect (or even good), but if your electricity generation is eco-friendly and abundant enough that's not a problem.
Maybe batteries/capacitors/whatever will improve enough so that we won't need to do that but if they don't, it won't necessarily mean the end of cheap transportation.
Oh, Dungeon Keeper, how I loved that game.
Mod Parent +1 Nostalgic
Counting in binary is just like counting in decimal -- if you are all thumbs. -- Glaser and Way