Circular primes: Difference between revisions
Content added Content deleted
(→{{header|Wren}}: Added embedded version.) |
m (→Embedded: Commented-out example restored.) |
||
Line 2,564: | Line 2,564: | ||
System.print(rus) |
System.print(rus) |
||
System.print("\nThe following repunits are probably circular primes:") |
System.print("\nThe following repunits are probably circular primes:") |
||
for (i in [5003, 9887, 15073, 25031, 35317 |
for (i in [5003, 9887, 15073, 25031, 35317, 49081]) { |
||
repunit.setString("1" * i, 10) |
repunit.setString("1" * i, 10) |
||
Fmt.print("R($-5d) : $s", i, repunit.probPrime(15) > 0) |
Fmt.print("R($-5d) : $s", i, repunit.probPrime(15) > 0) |