OFFSET
1,1
COMMENTS
There are 16484138 primes in this list, in total. The largest one has 60 digits and there is only one of that length.
PROG
(Python)
from sympy import isprime
route = set({})
nums = [i*(10**j) for i in range(1, 10) for j in range(2)]
def addnum(a):
global route
for j in nums:
b = int("{}{}".format(a, j))
if isprime(b):
if b not in route:
route.add(b)
addnum(b)
for j in nums:
b = int("{}{}".format(j, a))
if isprime(b):
if b not in route:
route.add(b)
addnum(b)
def run():
for i in nums:
if isprime(i):
addnum(i)
CROSSREFS
KEYWORD
nonn,fini
AUTHOR
Timothy Smith, Jan 25 2022
STATUS
approved