Jump to content

Neighbour primes: Difference between revisions

→‎J: generate the triples directly, and by using the '2 f/\ y' SC
(→‎J: add)
(→‎J: generate the triples directly, and by using the '2 f/\ y' SC)
Line 791:
 
=={{header|J}}==
<syntaxhighlight lang="j"> (#~ 1 p: {:"1) 2 (,. , 2 + */"1) 2 ,/\ p: i. _1 p: 500
3 5 17
5 7 37
559

edits

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