OFFSET
1,1
COMMENTS
In all cases a is multiple of 3, c = a + 3 and b = a + 1 or 2.
First triples are: {6, 8, 9}, {9, 10, 12}, {12, 14, 15}, {18, 20, 21}, {42, 44, 45}, {69, 70, 72}, {102, 104, 105}, {312, 314, 315}, {348, 350, 351}, {459, 460, 462}, {642, 644, 645}, {858, 860, 861}.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
MAPLE
filter:= proc(n) if n::even then andmap(isprime, [3*n+5, n+5, n+1, n-1]) else andmap(isprime, [3*n+4, n+4, n+2, n-2]) fi end proc:
select(filter, [seq(i, i=3..30000, 3)]); # Robert Israel, Aug 01 2017
MATHEMATICA
s = {}; Do[If[b + c > a && a + b > c && a + c > b && PrimeQ[a + b + c] && PrimeQ[-a + b + c] && PrimeQ[a - b + c] && PrimeQ[a + b - c], AppendTo[s, a}]], {a, 1000}, {b, a + 1, a + 2}, {c, b + 1, a+3}]; s
apQ[n_]:=AllTrue[{3n+4, n-2, n+2, n+4}, PrimeQ]||AllTrue[{3n+5, n-1, n+1, n+5}, PrimeQ]; Select[Range[22000], apQ] (* Harvey P. Dale, Nov 08 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 20 2017
EXTENSIONS
Definition simplified by Robert Israel, Aug 01 2017
STATUS
approved