OFFSET
1,1
COMMENTS
See A117048 for the primes that are the sum of two positive triangular numbers. The only difference is that the prime 3 occurs here.
FORMULA
EXAMPLE
2 = 1 + 1
3 = 0 + 3
7 = 1 + 6
and so on.
MATHEMATICA
tri = Table[n (n + 1)/2, {n, 0, 40}]; Select[Union[Flatten[Outer[Plus, tri, tri]]], # <= tri[[-1]]+1 && PrimeQ[#] &] (* T. D. Noe, Apr 07 2011 *)
Select[Total/@Tuples[Accumulate[Range[0, 40]], 2], PrimeQ]//Union (* Harvey P. Dale, Apr 21 2019 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Greg Huber, Apr 18 2006
STATUS
approved