J
Jerry Coffin
[ ... ]
Writing the basic idea of it in C++ took me about 2 minutes (at most).
Formatting the timing output and such to match yours reasonably well
took longer, because I had to look back and forth between my editor and
what you'd done.
The C++ version has been posted. As for taking 8 hours: well, some of us
have jobs....
And post the c++ GMP version. Where is the documentation? It took me
about 10 minutes to come up with the idea, look up BigInteger class on
the web, write few lines, and post it here.
http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigInteger.html
And I am not even Java expert. That's not what I do for living. Not
kidding. Maybe took even less than 10 minutes.
Writing the basic idea of it in C++ took me about 2 minutes (at most).
Formatting the timing output and such to match yours reasonably well
took longer, because I had to look back and forth between my editor and
what you'd done.
It's been 8 hours and no one has yet posted the c++ version. Why? How
come? Because it's much harder. You need to download GMP, find how it
works, even it works, and then you can't be sure your version will
work on say, Mac.
Post the C++ version. Where is it?
The C++ version has been posted. As for taking 8 hours: well, some of us
have jobs....