OFFSET
1,1
COMMENTS
The sequence of the primes 1 + sum of product of a(i) from i = 1 to n such that a(i) < a(i+1) is given by A225236.
EXAMPLE
MAPLE
with(numtheory) : a1:=3:p0:=3:p1:=2:k0:=2:for n from 1 to 50 do:ii:=0:for k from k0 to 10^6 while(ii=0) do:p:=ithprime(k):pp:=p1*p: ppp:=p0+pp:if type(ppp, prime)=true then p0:=ppp:p1:=pp: k0:=k+1:ii:=1:printf(`%d, `, p):else fi:od:od:
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Jul 19 2013
STATUS
approved