OFFSET
1,2
EXAMPLE
Third row is 1, 3, 5, so a(3) = 9.
PROG
(Magma) S:=[ [1] ]; for n in [2..35] do Append(~S, [1+i*Max([ x: x in S[n-1] | x eq 1 or IsPrime(x) ]): i in [0..n-1] ]); end for; [ &+R: R in S ];
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, May 31 2009
STATUS
approved