D-Programming-Language/d-programming-language.org — pull request #244 by John-Colvin (2013-01-31 23:35:21+00:00)
Title: fix the algorithm in the isprime example

The old version of isprime would return false for 2 and return true for any n with no factor less than sqrt(n).

These alterations fix that.