OFFSET
1,2
COMMENTS
Since the first 5 terms of A083754 are odd palindromes (A029950), they are also the first 5 terms of this sequence. - Michel Marcus, Feb 06 2014
EXAMPLE
13, 137, 13711, 137119, 137119111, 13711911133, ..., are all prime.
PROG
(PARI) findnew(va, n, vp, ilast) = {s= ""; for (i=1, n-1, s = concat(s, Str(va[i])); ); ok = 0; i = 2; while (!ok, if (vp[i] != 0, ns = concat(s, Str(vp[i])); if (isprime(eval(ns)), ok = 1); ); if (!ok, i++); if (i > #vp, return (0)); ); i; }
lista(nn) = {vn = vector(nn, i, i); vp = select(n->is_A002113(n), vn); va = vector(nn); va[1] = 1; print1(va[1], ", "); vp[1] = 0; ilast = 1; for (n = 2, vecmax(vp), inew = findnew(va, n, vp, ilast); if (! inew, break); va[n] = vp[inew]; vp[inew] = 0; print1(va[n], ", "); ilast = inew; ); } \\ Michel Marcus, Feb 06 2014
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 06 2005
EXTENSIONS
Corrected and extended by Michel Marcus, Feb 06 2014
STATUS
approved