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.