Cousin primes: Difference between revisions

Content added Content deleted
m (→‎{{header|J}}: looks nicer this way)
m (→‎{{header|J}}: minor note about code structure)
Line 1,137: Line 1,137:
967 971
967 971
Amount: 41</pre>
Amount: 41</pre>

(In this example, we can get away with finding primes where adding 4 gives us another prime. But if the task had asked for cousin prime pairs less than 100, we would want to avoid the pair 97,101. And the simplest way of addressing that issue would have been to find primes where subtracting 4 gives us another prime.)


=={{header|jq}}==
=={{header|jq}}==