OFFSET
1,1
COMMENTS
Only the first term of the sequence is prime. The remaining terms are all composite as they are of the form 2*k with k > 1.
EXAMPLE
As prime(1) + prime(1 + 1) * prime(1 + 2) = 2 + 3*5 = 17, a(1) = 17.
MATHEMATICA
#[[1]]+#[[2]]#[[3]]&/@Partition[Prime[Range[50]], 3, 1] (* Harvey P. Dale, Nov 02 2021 *)
PROG
(PARI) first(n) = my(v = vector(n), p = 1, q = 2, r = 3); for(i=1, n, p = q; q = r; r = nextprime(r + 1); v[i] = p + q*r); v \\ David A. Corneth, Oct 02 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Martin Michael Musatov, Oct 02 2017
STATUS
approved