Nice primes: Difference between revisions
→{{header|Wren}}: Simplification.
(Added Go) |
(→{{header|Wren}}: Simplification.) |
||
Line 210:
}
System.print("Nice primes in the interval (500, 900) are:")
var c = 0
Line 217 ⟶ 216:
var s = i
while (s >= 10) s = sumDigits.call(s)
if (
c = c + 1
Fmt.print("$2d: $d -> Σ = $d", c, i, s)
|