Primality by trial division: Difference between revisions
Content added Content deleted
Line 1,475: | Line 1,475: | ||
bool isPrime1(T)(in T n) pure nothrow { |
bool isPrime1(T)(in T n) pure nothrow { |
||
// Simple Version |
|||
if (n == 2) |
if (n == 2) |
||
return true; |
return true; |