OFFSET
1,1
COMMENTS
This is the general form : (p-n)/(n+1)=primeand(n+1)*p+n=prime; 'Safe' primes and'Sophie Germain' primes just one part of this general form; If n=1 then we got'Safe' primes and'Sophie Germain' primes.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..3000
MATHEMATICA
lst={}; n=5; Do[p=Prime[k]; If[PrimeQ[(p-n)/(n+1)]&&PrimeQ[(n+1)*p+n], AppendTo[lst, p]], {k, 7!}]; lst
Select[Prime[Range[1000]], AllTrue[{(#-5)/6, 6#+5}, PrimeQ]&] (* This program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jul 29 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 02 2008
STATUS
approved