OFFSET
1,1
COMMENTS
3*5=15+-2->primes,..
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
q=3; lst={}; Do[p=Prime[n]; If[PrimeQ[q*p-Mod[p, q]]&&PrimeQ[q*p+Mod[p, q]], AppendTo[lst, p]], {n, 7!}]; lst
Select[Prime[Range[1300]], AllTrue[3#+{Mod[#, 3], -Mod[#, 3]}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Sep 01 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 26 2010
STATUS
approved