OFFSET
2,1
COMMENTS
a(n) = p + 1 where p is the first prime such that there are no primes between n*p and n*(p+1).
LINKS
Robert Israel, Table of n, a(n) for n = 2..280
EXAMPLE
a(4) = 24 because the greatest prime < 24 is 23 and the greatest prime < 4*24 is 89 < 4*23.
MAPLE
f:= proc(n) local p;
p:= 1;
do
p:= nextprime(p);
if not ormap(isprime, [$ (n*p+1) .. (n*p+n-1)]) then return p+1 fi
od
end proc:
map(f, [$2..100]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Dec 29 2023
STATUS
approved
