OFFSET
1,1
COMMENTS
The prime triple herein is restricted to the form (p, p+4, p+6). In number theory, the other form of a prime triple is (p, p+2, p+6).
Equivalently, primes of the form 3*A022005(k) + 10.
FORMULA
a(n) mod 6 = 1.
EXAMPLE
The first term is 31, the sum of the triple (7, 11, 13).
The second term is 211, the sum of the triple (67, 71, 73).
MAPLE
q:= p-> andmap(isprime, (t->[p, t, t-4, t+2])((p+2)/3)):
select(q, [6*i+1$i=1..50000])[]; # Alois P. Heinz, Nov 13 2024
MATHEMATICA
Select[Total /@ Select[Partition[Prime[Range[7500]], 3, 1], Differences[#] == {4, 2} &], PrimeQ] (* Amiram Eldar, Oct 31 2024 *)
PROG
(Python)
from sympy import isprime
sums = set()
for n in range(100000):
if isprime(n) and isprime(n+4) and isprime(n+6) and isprime(3*n+10):
sums.add(3*n+10)
print(sorted(sums))
CROSSREFS
KEYWORD
nonn
AUTHOR
James S. DeArmon, Oct 27 2024
STATUS
approved
