OFFSET
0,1
LINKS
EXAMPLE
a(4)=113, so a(5)=311 because a(5) must be greater than a(4) and have no zero digit and the last digit, 3, of 113 must link to the first digit, 3, of 311.
PROG
(PARI) nxtprm(fp) = {fd = digits(fp); ld = fd[#fd]; forprime(p = fp+1, , nd = digits(p); if ((nd[1] == ld) && (vecmin(nd) != 0), return (p))); }
lista(nn) = {fp = 1; for (n=1, nn, np = nxtprm(fp); print1(np, ", "); fp = np; ); } \\ Michel Marcus, Jun 06 2014
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Enoch Haga, Feb 18 2000
EXTENSIONS
More terms from Patrick De Geest, Feb 15 2000
STATUS
approved