Gaussian primes: Difference between revisions
m
→{{header|Wren}}: Minor update following changes to complex number formatting.
m (→{{header|Wren}}: Minor update following changes to complex number formatting.) |
|||
Line 773:
}
System.print("Gaussian primes with a norm less than 100 sorted by norm:")
Fmt.tprint("($
GPrimes = GPrimes.map { |c| c.toPair }.toList
Line 799:
<pre>
Gaussian primes with a norm less than 100 sorted by norm:
( 1 +
( 2 -
(-2 +
(-3 +
(-2 +
( 4 -
(-4 +
( 2 -
( 6 +
(-1 -
( 4 +
(-5 -
( 7 +
(-2 -
( 5 +
(-6 -
(-3 +
( 8 -
(-8 +
( 4 -
</pre>
|