OFFSET
1,1
COMMENTS
Sometimes prime integer sums occur with consecutive primes, as 1601*e and 1607*e.
FORMULA
Beginning with the first prime, multiply by e, take integer, repeat, adding integer sums until a cumulative prime sum occurs. On the first prime, 2, the integer product is 5, prime. Continue to next integer product, add, until the next prime sum, 13.
EXAMPLE
The 4th cumulative sum of integer products is 641, prime.
PROG
(UBASIC)
10 Ct=1
20 B=nxtprm(B)
22 E=#e
30 C=int(B*E)
40 D=D+C
41 print Ct, B, C, D
50 if D=prmdiv(D) then print D:stop
55 Ct=Ct+1
60 goto 20
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Enoch Haga, Mar 25 2006
STATUS
approved