Yeah, as I wrote there, “As with all of the examples in the article, isprime() leaves many potential optimizations on the table in the interests of simplicity.”
The source you link to is longer than my entire article. But it is good to see an example of a “real” program.