OFFSET
1,1
COMMENTS
Not equal to A068693: first and 2nd terms differ.
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[NextPrime[(10^n-1)/9], {n, 40}]
Table[NextPrime[FromDigits[PadRight[{}, n, 1]]], {n, 30}] (* Harvey P. Dale, Aug 11 2023 *)
PROG
(PARI) a(n) = nextprime((10^n-1)/9 + 1); \\ Michel Marcus, May 02 2016
(Python)
from sympy import nextprime
def A096497(n):
return nextprime((10**n-1)//9) # Chai Wah Wu, Nov 04 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 09 2004
STATUS
approved