OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..54
EXAMPLE
a(1) = 7 is a term because the digits of 7 form a subsequence of those of prime(7) = 17.
PROG
(Python)
from sympy import sieve
def ok(n):
p = sieve[n]
while n and p:
if n%10 == p%10:
n //= 10
p //= 10
return n == 0
print([k for k in range(1, 10**6) if ok(k)]) # Michael S. Branicky, Apr 06 2023
(Python)
from sympy import prime, nextprime
from itertools import count, islice
def A362060_gen(startvalue=1): # generator of terms >= startvalue
p = prime(max(startvalue, 1))
for k in count(max(startvalue, 1)):
c = iter(str(p))
if all(map(lambda b:any(map(lambda a:a==b, c)), str(k))):
yield k
p = nextprime(p)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jean-Marc Rebert, Apr 06 2023
EXTENSIONS
a(36)-a(39) from Michael S. Branicky, Apr 06 2023
STATUS
approved