OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) local x;
if n::even then x:= 1 else x:= -1; fi;
do
x:= x+n;
if isprime(x) then return x fi
od
end proc:
map(f, [$1..100]); # Robert Israel, Dec 09 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jul 29 2003
EXTENSIONS
More terms from David Wasserman, Mar 09 2005
STATUS
approved