OFFSET
1,2
COMMENTS
For this sequence, 0 is considered composite.
LINKS
Dominic McCarty, Table of n, a(n) for n = 1..10000
PROG
(Python)
a, z = [1], [1, 2, 3, 5, 7]
while len(a) < 100:
k, s = 2, "2"
while (k in a) or (a[-1] % 10 * int(s[0]) in z) or \
any(int(s[n]) * int(s[n+1]) in z for n in range(0, len(s)-1)): s, k = str(k+1), k+1
a.append(k)
print(a) # Dominic McCarty, Feb 05 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jim Nastos and Eric Angelini, Apr 22 2012
STATUS
approved