OFFSET
2,1
LINKS
Robert Israel, Table of n, a(n) for n = 2..999
MAPLE
seq(prevprime((10^n-1)/9), n=2..50); # Robert Israel, Nov 13 2017
MATHEMATICA
Table[NextPrime[(10^n - 1)/9, -1], {n, 2, 22}] (* updated by Michael De Vlieger, May 02 2016 *)
PROG
(PARI) a(n) = precprime((10^n-1)/9 - 1); \\ Michel Marcus, May 02 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 09 2004
STATUS
approved