OFFSET
1,1
COMMENTS
T(p) must be odd, so these primes p satisfy p == 1 (mod 4) (A002144).
Corresponding values of T(p)-2 are in A357219.
The first eleven primes == 1 (mod 4) are terms. The smallest Pythagorean prime that is not a term is A002144(12) = 101 because T(101) = 5151 and 5151 - 2 = 5149 = 19 * 271 (see Wells reference).
REFERENCES
David Wells, The Penguin Dictionary of Curious and Interesting Numbers, Revised Edition, Penguin Books, London, England, 1997, entry 496, page 142.
EXAMPLE
T(5) - 2 = 5*6/2 - 2 = 13, hence 5 is a term.
MAPLE
filter := p -> isprime(p) and irem(p-1, 4) = 0 and isprime(p*(p+1)/2 -2) : select(filter, [$1 .. 1500]);
MATHEMATICA
Select[Prime[Range[240]], PrimeQ[#*(# + 1)/2 - 2] &] (* Amiram Eldar, Sep 18 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Bernard Schott, Sep 18 2022
STATUS
approved