OFFSET
1,1
COMMENTS
All terms are multiples of 12.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
36 = 8*9/2 is a term since it is triangular and the sum of the twin primes 17 and 19.
120 = 15*16/2 is a term since it is triangular and the sum of the twin primes 59 and 61.
MATHEMATICA
tri[n_] := n*(n+1)/2; Select[tri /@ Range[10^3], And @@ PrimeQ[#/2 + {-1, 1}] &] (* Amiram Eldar, Dec 27 2019 *)
PROG
(PARI) lista(nn) = {for (n = 1, nn, trg = n*(n+1)/2; if (!(trg % 2) && isprime(trg/2-1) && isprime(trg/2+1), print1(trg, ", ")); ); } \\ Michel Marcus, Oct 16 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 01 2009
STATUS
approved