Lucas-Lehmer test: Difference between revisions

Content deleted Content added
Updated D entry
Updated D entry
Line 444:
<lang d>import std.stdio, std.math, std.bigint;
 
bool isPrime(in int p) pure nothrow @nogc {
if (p < 2 || p % 2 == 0)
return p == 2;