OFFSET
1,1
COMMENTS
In other words, primes p such that 3*(p-3) is a term of A014574. - Omar E. Pol, Aug 05 2009
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
3*(5-3) = 6, 3*(7-3) = 12, 3*(13-3) = 30, ...
MAPLE
select(p -> isprime(p) and isprime(3*p-10) and isprime(3*p-8), [seq(i, i=3..10000, 2)]); # Robert Israel, Nov 13 2016
MATHEMATICA
f1[n_]:=If[PrimeQ[n-1]&&PrimeQ[n+1], True, False]; f2[n_]:=If[f1[n]&&PrimeQ[n/3+3], True, False]; lst={}; Do[If[f2[n], AppendTo[lst, n/3+3]], {n, 8!}]; lst
Select[Prime[Range[400]], AllTrue[3(#-3)+{1, -1}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jan 16 2017 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jul 25 2009
EXTENSIONS
Definition clarified and edited by Omar E. Pol, Aug 05 2009
STATUS
approved