OFFSET
1,1
COMMENTS
EXAMPLE
a(5) = 15015 = 3*5*7*11*13 is the product of 5 consecutive primes and is divisible by 3+5+7+11+13 = 39.
MAPLE
f:= proc(n) local L, i, p;
L:= [seq(ithprime(i), i=1..n)]:
p:= convert(L, `*`);
if n::even then
if p mod convert(L, `+`) = 0 then return p else return 0 fi
else
do
p:= convert(L, `*`);
if p mod convert(L, `+`) = 0 then return p fi;
if p > 10^225 then return FAIL fi;
L:= [op(L[2..-1]), nextprime(L[-1])];
od
fi;
end proc:
map(f, [$1..26]);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jan 10 2021
STATUS
approved