Find adjacent primes which differ by a square integer: Difference between revisions
Content added Content deleted
(J) |
m (→{{header|J}}: document the algorithm) |
||
Line 567: | Line 567: | ||
981823 981887 64 |
981823 981887 64 |
||
997813 997877 64</lang> |
997813 997877 64</lang> |
||
In other words: enumerate primes less than 1e6, find the pairwise differences, find where the prime pairs where maximum of their square root and 6.5 is an integer, and list those pairs with their differences. |
|||
=={{header|jq}}== |
=={{header|jq}}== |