OFFSET
1,1
LINKS
Chris Caldwell, The First 10,000 Primes.
EXAMPLE
The largest and smallest 1-digit primes are 7 and 2, so the first term is 72.
The largest and smallest 2-digit primes are 97 and 11, so the second term is 9711.
MAPLE
for n from 0 to 30 do for m from 1 to 10^(n+1)-1 do if isprime(10^(n+1) - m) then printf(`%d`, 10^(n+1)-m); break; fi: od: for m from 1 to 10^(n+1)-1 do if isprime(10^n + m) then printf(`%d`, 10^n+m); break; fi: od: printf(`, `): od: # James A. Sellers, May 02 2005
MATHEMATICA
Table[FromDigits[Join[IntegerDigits[NextPrime[10^n, -1]], IntegerDigits[NextPrime[10^(n-1)]]]], {n, 14}] (* James C. McMahon, Jan 22 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Parthasarathy Nambi, Apr 30 2005
EXTENSIONS
More terms from James A. Sellers, May 02 2005
Offset corrected by Michel Marcus, Aug 18 2017
a(13)-a(14) from James C. McMahon, Jan 22 2024
STATUS
approved