Find adjacent primes which differ by a square integer: Difference between revisions

Content added Content deleted
m (Moved Wren into alphabetical order.)
(add parigp)
Line 109: Line 109:
997813 997877 64
997813 997877 64
</pre>
</pre>

=={{header|PARI/GP}}==
<lang parigp>
for(i=3,1000000,j=nextprime(i+1);if(isprime(i)&&j-i>36&&issquare(j-i),print(i," ",j," ",j-i)))
</lang>


=={{header|Python}}==
=={{header|Python}}==