Consecutive primes with ascending or descending differences: Difference between revisions
Consecutive primes with ascending or descending differences (view source)
Revision as of 08:50, 16 November 2021
, 2 years ago→{{header|jq}}: +=
(→{{header|jq}}: +=) |
|||
Line 547:
then .longSeqs = [.currSeq]
else if (.currSeq|length) == (.longSeqs[0]|length)
then
else .
end
end
| .currSeq = [$primes[$i-1], $primes[$i]]
else
end
| .pd = $d
Line 585:
752207 (44) 752251 (12) 752263 (10) 752273 (8) 752281 (6) 752287 (4) 752291 (2) 752293
</pre>
=={{header|Julia}}==
|