login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A048550
a(n+1) is the next smallest prime beginning with a(n), initial prime is 3.
4
3, 31, 311, 3119, 31193, 3119309, 31193093, 311930933, 31193093317, 311930933179, 3119309331797, 311930933179703, 31193093317970371, 3119309331797037107, 311930933179703710759, 31193093317970371075907
OFFSET
0,1
LINKS
MAPLE
f:= proc(n) local d, a;
for d from 1 do
for a from 10^d*n+1 by 2 to 10^d*(n+1) do
if isprime(a) then return a fi
od od
end proc:
R:= 3: x:= 3:
for i from 2 to 30 do
x:= f(x);
R:= R, x;
od:
R; # Robert Israel, Dec 13 2023
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, May 15 1999
STATUS
approved