OFFSET
1,1
EXAMPLE
a(3) = 1777 1 followed by three copies of 7. 1111 and 1333 are composite.
a(4) = 137373737 is 1 followed by four copies of 37.
PROG
(PARI) makestring(n, k) = {d = digits(k); v = vector(n*#d+1); v[1] = 1; ipos = 2; for (i=1, n, for (j=1, #d, v[ipos] = d[j]; ipos++; ); ); s = ""; for (i=1, #v, s = concat(s, v[i])); eval(s); }
a(n) = {k = 1; while (! isprime(v=makestring(n, k)), k++); v; } \\ Michel Marcus, Nov 12 2013
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Jan 02 2006
EXTENSIONS
More terms from Jon E. Schoenfield, May 27 2010
a(15) from Arkadiusz Wesolowski, Nov 12 2013
STATUS
approved