OFFSET
1,1
COMMENTS
Smallest prime that is the sum of n consecutive terms of A033286.
Apparently a(n) exists for any odd n.
Values of m = {1, 3, 1, 0, 7, 6, 4, 0, 9, 2, 12, 0, 17, 11, 2, 0, 17, 4, 8, 0, 11, 7, 4, 0, 3, 5, 2, 0, 27, 5, 30, 1, 5, 2, 10, 0, 3, 4, 8, 0, 5, 5, 22, 0, 15, 6, 14, 0, 13, 13, ...}. - Michael De Vlieger, Feb 05 2016
EXAMPLE
n=1: m=1 and 1*prime(1) = 1*2 = 2 = a(1),
n=2: m=3 and 3*prime(3)+4*prime(4) = 3*5+4*7 = 43 = a(2),
n=3: m=1 and 1*prime(1)+2*prime(2)+3*prime(3) = 1*2+2*3+3*15 = 23 = a(3),
n=4: no solution => a(4) = 0,
n=5: m=7 and 7*prime(7)+..11*prime(11) = 119+152+207+290+341 = 1109 = a(5).
MATHEMATICA
Table[If[# == 0, 0, Sum[k Prime@ k, {k, #, n + # - 1}]] &@(SelectFirst[Range[10^3], PrimeQ@ Sum[k Prime@ k, {k, #, n + # - 1}] &] /. x_ /; MissingQ@ x -> 0), {n, 50}] (* Michael De Vlieger, Feb 05 2016, Version 10.2 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 05 2016
STATUS
approved