OFFSET
1,1
COMMENTS
At the twin primes 41 and 43, we obtain consecutive prime integer sums of 641 and 757.
FORMULA
Multiply consecutive primes by e, take integer, sum until a prime sum is reached.
EXAMPLE
In a(5)=4007, multiplication of the prime 109*e resulted in the int sum 296. When added to previous sums, the total came to 4007, a 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