OFFSET
1,1
COMMENTS
149 is in the sequence, because the following numbers are all composite: 1149, 2149, 3149, 4149, 5149, 6149, 7149, 8149 and 9149.
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Prime@Range@1000, NoneTrue[#+10^IntegerLength@#*Range@9, PrimeQ]&] (* Hans Rudolf Widmer, May 28 2022 *)
PROG
(Python)
from sympy import isprime, primerange
def ok(p): return not any(isprime(int(d+str(p))) for d in "123456789")
print(list(filter(isprime, primerange(2, 5500)))) # Michael S. Branicky, May 28 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Dmitry Kamenetsky, Jan 26 2009
STATUS
approved