OFFSET
2,1
LINKS
Robert Israel, Table of n, a(n) for n = 2..7700
EXAMPLE
a(4) = 3 as 3*5*7*11 mod (3+5+7+11) = 11 is prime.
MAPLE
f:= proc(n) local L, k;
L:= [seq(ithprime(k), k=1..n)];
do
if isprime(convert(L, `*`) mod convert(L, `+`)) then return L[1] fi;
L:= [op(L[2..-1]), nextprime(L[-1])];
od;
end proc:
map(f, [$2..100]);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jan 27 2021
STATUS
approved