A162021 Triple-safe primes which are also triple-Sophie Germain primes.
8981279, 17313839, 18635759, 82062479, 82479119, 98517599, 112242479, 113164319, 152799359, 184829279, 193409039, 230749199, 296709839, 305598719, 339116159, 393280799, 406283519
Offset: 1
Keywords
Programs
-
Mathematica
f[n_]:=Module[{x},If[PrimeQ[(n-1)/2]&&PrimeQ[(((n-1)/2)-1)/2]&&PrimeQ[(((((n-1)/ 2)-1)/2)-1)/2]&&PrimeQ[2*n+1]&&PrimeQ[2*(2*n+1)+1]&&PrimeQ[2*(2*(2*n+1)+1)+1], x=1,x=0];x]; lst={};Do[p=Prime[n];If[f[p]!=0,AppendTo[lst,p]],{n, 6*10!}];lst
Extensions
Edited by R. J. Mathar, Jun 26 2009
Comments