login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A074104
Smallest multiple of n such that every partial sum is a prime, or 0 if no such number exists.
2
2, 0, 3, 8, 10, 6, 14, 16, 54, 50, 66, 12, 52, 14, 30, 16, 68, 18, 304, 80, 84, 22, 92, 48, 250, 104, 108, 28, 174, 90, 558, 96, 66, 170, 490, 144, 296, 76, 78, 80, 574, 42, 258, 308, 360, 138, 94, 192, 686, 150, 102, 52, 318, 378, 110, 280, 228, 116, 708, 120, 976
OFFSET
1,1
COMMENTS
0 occurs only once as a(2).
LINKS
PROG
(PARI) lista(n)={my(a=vector(n), s=2); a[1]=s; for(n=3, n, my(m=n); while(!isprime(s+m), m+=n); a[n]=m; s+=m); a} \\ Andrew Howroyd, Dec 10 2024
CROSSREFS
Cf. A084665.
Sequence in context: A209259 A020826 A094346 * A071411 A336326 A255384
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 22 2002
STATUS
approved