Gaussian primes: Difference between revisions
Content added Content deleted
(→{{header|jq}}: document an assumption) |
(→{{header|jq}}: rm extraneous comment) |
||
Line 235: | Line 235: | ||
<syntaxhighlight lang=jq> |
<syntaxhighlight lang=jq> |
||
# emit a stream of Gaussian primes with real and imaginary parts within the given radius |
# emit a stream of Gaussian primes with real and imaginary parts within the given radius |
||
# but use the square |real| < $Radius |
|||
def GPrimes($Radius): |
def GPrimes($Radius): |
||
($Radius | norm) as $R2 |
($Radius | norm) as $R2 |