OFFSET
1,2
EXAMPLE
a(2) = 1+4 = 5 which is prime hence a(3) = 5+2 = 7 which is also a prime,a(4)= 7+3 = 10 which is composite hence a(5) = 10 + 6 = 16.
MAPLE
A073895 :=proc(nmax) local a, kset; a := [1] ; kset := {} ; while nops(a) < nmax do k :=2; while k in kset or isprime(k)<>isprime(op(-1, a)) do k := k+1 ; od ; a := [op(a), op(-1, a)+k] ; kset := kset union {k} ; od ; RETURN(a) ; end: op(A073895(80)) ; # R. J. Mathar, Jun 27 2007
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Aug 18 2002
EXTENSIONS
More terms from R. J. Mathar, Jun 27 2007
STATUS
approved