Nice primes: Difference between revisions

Content added Content deleted
(Added Go)
(→‎{{header|Wren}}: Simplification.)
Line 210:
}
 
var smallPrimes = [2, 3, 5, 7]
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 (smallPrimesInt.containsisPrime(s)) {
c = c + 1
Fmt.print("$2d: $d -> Σ = $d", c, i, s)