Special neighbor primes: Difference between revisions
Content added Content deleted
(→J: generate the triples directly, and by using the '2 f/\ y' SC) |
m (→J: simplify) |
||
Line 609: | Line 609: | ||
=={{header|J}}== |
=={{header|J}}== |
||
<syntaxhighlight lang="j"> (#~ 1 p: {:"1) 2 ( |
<syntaxhighlight lang="j"> (#~ 1 p: {:"1) 2 (, _1 + +/)\ i.&.(p:inv) 100 |
||
3 5 7 |
3 5 7 |
||
5 7 11 |
5 7 11 |
||
Line 622: | Line 622: | ||
61 67 127 |
61 67 127 |
||
67 71 137 |
67 71 137 |
||
73 79 151 |
73 79 151</syntaxhighlight> |
||
</syntaxhighlight> |
|||
=={{header|jq}}== |
=={{header|jq}}== |