Special neighbor primes: Difference between revisions

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

edits