News for hackers. Stuff that matters.
Re:Fast prime numbers by dalke on Friday February 18, 2011 @06:06PM (#2237673)
Then the article is woefully mistitled. If I was doing this in C I would just write the code to generate a static table, so this isn't that useful of an good example except as very basic pedagogy. Also, you should show how the compiler time increases if you want it to compute, say, the 200th prime.
Re:Fast prime numbers by joemanaco on Friday February 18, 2011 @06:27PM (#2237726)
Hmmm, I'm thinking you're right. I've renamed it to "How to move prime calculation from execution to compile time". I hope this title fits better with the content.
Re:Fast prime numbers by dalke on Saturday February 19, 2011 @07:11AM (#2238917)
Hey, this is HN. We're supposed to argue and talk past each other with no changes in what we've done or believe. ;)

(And yes, it does fit better.)

Cheers.