OFFSET
1,1
COMMENTS
Any 4-digit term has all digits prime (cf. A019546).
The corresponding sequence for two digits deleted contains only 18 terms up to 10^100 (Cf. A378081).
Any term >= 10000 must have its last four digits be from {1, 3, 7, 9}. - Michael S. Branicky, Dec 01 2024
EXAMPLE
43117 is in the sequence since upon deleting any three digits we get 43, 31, 11, 17 and 47, all of which are prime.
PROG
(Python)
from sympy import isprime
from itertools import combinations as C
def ok(n):
if n < 1000 or not isprime(n): return False
s = str(n)
return all(isprime(int(t)) for i, j, k in C(range(len(s)), 3) if (t:=s[:i]+s[i+1:j]+s[j+1:k]+s[k+1:])!="")
print([k for k in range(10**6) if ok(k)]) # Michael S. Branicky, Dec 01 2024
CROSSREFS
KEYWORD
nonn,base,less,new
AUTHOR
Enrique Navarrete, Nov 30 2024
STATUS
approved