Pierpont primes: Difference between revisions

Content added Content deleted
(→‎{{header|jq}}: one too many debug statements)
Line 1,426: Line 1,426:
# where .p is prime and .m and .n are the corresponding powers of 2 and 3
# where .p is prime and .m and .n are the corresponding powers of 2 and 3
| def pp:
| def pp:
debug as [$maxm, $maxn]
. as [$maxm, $maxn]
| [ ({p2:1, m:0},
| [ ({p2:1, m:0},
(foreach range(0; $maxm) as $m (1; . * 2; {p2: ., m: ($m + 1)}))) as $a
(foreach range(0; $maxm) as $m (1; . * 2; {p2: ., m: ($m + 1)}))) as $a