OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..2500
EXAMPLE
If n=103 then 99n = 99103 (prime).
MAPLE
a:= proc(n) local k; for k from 1 +`if`(n=1, 0, a(n-1))
while not isprime(parse(""||99||k)) do od; a(n):=k
end:
seq(a(n), n=1..100); # Alois P. Heinz, Jul 30 2014
MATHEMATICA
plQ[n_] := Module[{idn = IntegerDigits[n]}, PrimeQ[FromDigits[PadLeft[idn, Length[idn] + 2, 9]]]]; Select[Range[700], plQ] (* Harvey P. Dale, Jan 18 2011 *)
Select[Range[700], PrimeQ[99 10^IntegerLength[#] + #] &] (* Vincenzo Librandi, Jul 30 2014 *)
PROG
(Magma) [n: n in [1..600] | IsPrime(Seqint(Intseq(n) cat [9, 9])) ]; // Vincenzo Librandi, Jul 30 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Parthasarathy Nambi, Sep 01 2005
STATUS
approved