OFFSET
1,1
COMMENTS
a(n) is the first prime p such that (-1)^n*p is in the n-th column of A238146.
LINKS
Robert Israel, Table of n, a(n) for n = 1..118
EXAMPLE
a(4) = 2927 = 2*3*5*7 + 2*3*5*11 + 2*3*7*11 + 2*5*7*11 + 3*5*7*11 is the 4th symmetric function of the first 5 primes (2,3,5,7,11) and is prime.
MAPLE
N:= 20: V:= Vector(N):
S:= Vector(N): p:= 2: S[1]:= 2: V[1]:= 2: count:= 1:
while count < N do
p:= nextprime(p);
for k from N to 2 by -1 do
S[k]:= S[k] + p*S[k-1];
if V[k] = 0 and isprime(S[k]) then V[k]:= S[k]; count:= count+1; fi;
od;
S[1]:= S[1]+p;
od:
convert(V, list);
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Sep 21 2022
STATUS
approved