OFFSET
1,2
EXAMPLE
Partial sums: 1+2 = 3, 1+2+2 = 5, 1+2+2+18 = 23;
partial products + 1: 1*2 + 1 = 3, 1*2*2 + 1 = 5, 1*2*2*18 + 1 = 73.
MATHEMATICA
a = {1}; s = 1; p = 1; Do[k = 2; While[ !PrimeQ[s + k] || !PrimeQ[p*k + 1], k++ ]; AppendTo[a, k]; s += k; p *= k, {n, 1, 65}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 06 2003
EXTENSIONS
More terms from Robert G. Wilson v, Sep 07 2003
STATUS
approved