Jump to content

Cousin primes: Difference between revisions

m
→‎{{header|J}}: minor note about code structure
m (→‎{{header|J}}: looks nicer this way)
m (→‎{{header|J}}: minor note about code structure)
Line 1,137:
967 971
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}}==
6,962

edits

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