OFFSET
1,1
LINKS
Ashaz Jameel, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Prime[Range[250]], FreeQ[IntegerDigits[#], 3 | 5 | 7] &] (* Paolo Xausa, Mar 03 2026 *)
PROG
(Python)
from sympy import isprime
from itertools import count, islice, product
def agen(): # generator of terms
yield 2
for d in count(2):
for first in "124689":
for mid in product("0124689", repeat=d-2):
for last in "19":
if isprime(t:=int(first + "".join(mid) + last)):
yield t
print(list(islice(agen(), 52))) # Michael S. Branicky, Feb 26 2026
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Omar E. Pol, Dec 02 2008
STATUS
approved
