OFFSET
1,1
COMMENTS
Repeated removal of a single digit must eventually result in a nonprime.
Undeletable primes. - Arkadiusz Wesolowski, Oct 18 2011
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
PROG
(Python)
from sympy import isprime, prevprime
def c(n):
if not isprime(n): return False
if n < 10: return True
s = str(n)
si = (s[:i]+s[i+1:] for i in range(len(s)))
return any(t[0] != '0' and c(int(t)) for t in si)
def ok(n):
return isprime(n) and not c(n)
print([k for k in range(942) if ok(k)]) # Michael S. Branicky, Jan 27 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
David W. Wilson, Mar 02 2003
STATUS
approved