Consecutive primes with ascending or descending differences: Difference between revisions
Consecutive primes with ascending or descending differences (view source)
Revision as of 13:23, 23 July 2022
, 1 year agoJ: same conceptual algorithm, faster, more compact
(J: same conceptual algorithm, faster, more compact) |
|||
Line 574:
=={{header|J}}==
<lang J
128981 128983 128987 128993 129001 129011 129023 129037
;{.(\: #@>) tris <@~.@,;._1~ >:/ 2 -/\ |: tris=: 3 ]\ p: i. p:inv 1e6
322171 322193 322213 322229 322237 322243 322247 322249</
=={{header|jq}}==
|