OFFSET
1,2
COMMENTS
Another rearrangement of odd numbers not == 0 (mod 5).
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
a(4) = 19. Though 41, 43 and 47 are prime 1, 3 and 7 have been included earlier and also 49, 411, 413 and 417 are not prime hence 419 is the required prime.
PROG
(Python)
from sympy import isprime
from itertools import count, islice
def agen():
aset, mink = set(), 1
for n in count(1):
s, k = str(n), mink
while k in aset or not isprime(int(s + str(k))): k += 1
while mink%5 == 0 or mink in aset: mink += 2
yield k; aset.add(k)
print(list(islice(agen(), 63))) # Michael S. Branicky, Aug 20 2022
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Oct 21 2003
EXTENSIONS
More terms from Ray G. Opao, Aug 19 2004
STATUS
approved