Lucas-Lehmer test: Difference between revisions

Content added Content deleted
No edit summary
Line 2,296: Line 2,296:


=={{header|PARI/GP}}==
=={{header|PARI/GP}}==
===Standard version:===
===Standard version===
<syntaxhighlight lang="parigp">LL(p)={
<syntaxhighlight lang="parigp">LL(p)={
my(m=Mod(4,1<<p-1));
my(m=Mod(4,1<<p-1));