Special neighbor primes: Difference between revisions

Content added Content deleted
m (→‎J: simplify)
m (→‎{{header|Wren}}: Minor tidy)
Line 1,131: Line 1,131:
{{libheader|Wren-fmt}}
{{libheader|Wren-fmt}}
I assume that 'neighbor' primes means pairs of successive primes.
I assume that 'neighbor' primes means pairs of successive primes.
<syntaxhighlight lang="wren">import "./math" for Int

import "./fmt" for Fmt
Anticipating a likely stretch goal.
<syntaxhighlight lang="ecmascript">import "/math" for Int
import "/fmt" for Fmt


var max = 1e7 - 1
var max = 1e7 - 1