OFFSET
1,1
COMMENTS
For a guide to related sequences, see A204892.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) local p, k;
p:= n+4;
do
p:= nextprime(p);
if ormap(isprime, [seq(p-n*k, k=1..(p-5)/n)]) then return p fi
od
end proc:
map(f, [$1..100]); # Robert Israel, Jun 27 2019
MATHEMATICA
(See the program at A204908.)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Clark Kimberling, Jan 20 2012
EXTENSIONS
More terms from Robert Israel, Jun 27 2019
STATUS
approved