OFFSET
1,1
EXAMPLE
5 is in the sequence because 11, 17, 23, and 29 are primes.
MAPLE
a:=proc(n) if isprime(2*n+1)=true and isprime(3*n+2)=true and isprime(4*n+3)= true and isprime(5*n+4)=true then n else end if end proc: seq(a(n), n=1..40000); # Emeric Deutsch, May 24 2008
MATHEMATICA
a={}; Do[If[PrimeQ[n*2+1]&&PrimeQ[n*3+2]&&PrimeQ[n*4+3]&&PrimeQ[n*5+4], AppendTo[a, n]], {n, 1, 10^5}]; Print[a];
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 15 2008
EXTENSIONS
More terms from Emeric Deutsch, May 24 2008
STATUS
approved