login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A138700
Numbers k such that 2*k+1, 3*k+2, 4*k+3 and 5*k+4 are primes.
5
5, 89, 119, 755, 1175, 1469, 1769, 2105, 5045, 6725, 9065, 9365, 9659, 10379, 10505, 11639, 12899, 14279, 16385, 19229, 19985, 21845, 22559, 23309, 24905, 26795, 27005, 29489, 30359, 31409, 31835, 32549, 35999, 36455, 38339
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
Sequence in context: A266064 A106971 A136618 * A139937 A059696 A072216
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Emeric Deutsch, May 24 2008
STATUS
approved