OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
p:= 1: c:= 1: R:= 1:
for n from 2 to 100 do
if isprime(n) then
c:= max(c, n)+1;
while isprime(c) do c:=c+1 od:
R:= R, c
else
p:= nextprime(max(p, n));
R:= R, p
fi
od:
R; # Robert Israel, Apr 10 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 19 2002
EXTENSIONS
Extended by Ray Chandler, Apr 09 2014
STATUS
approved