Jump to content

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

m
→‎{{header|J}}: document the algorithm
(J)
m (→‎{{header|J}}: document the algorithm)
Line 567:
981823 981887 64
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}}==
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.