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”).

A005124
Numbers k such that 8k + 3 is prime.
10
0, 1, 2, 5, 7, 8, 10, 13, 16, 17, 20, 22, 26, 28, 31, 35, 38, 41, 43, 47, 52, 55, 58, 61, 62, 65, 68, 70, 71, 73, 77, 80, 82, 85, 86, 92, 98, 101, 103, 107, 110, 113, 118, 121, 127, 131, 136, 140, 145, 146, 148, 157, 160, 161, 163, 178, 181, 182, 185, 187
OFFSET
1,3
LINKS
MATHEMATICA
(#-3)/8&/@Select[Range[3, 1303, 8], PrimeQ] (* Harvey P. Dale, May 19 2012 *)
Select[Range[0, 300], PrimeQ[8 # + 3] &] (* Vincenzo Librandi, Jun 25 2014 *)
PROG
(Magma) [n: n in [0..200] | IsPrime(8*n+3)]; // Vincenzo Librandi, Jun 25 2014
(PARI) is(n)=isprime(8*n+3) \\ Charles R Greathouse IV, Feb 17 2017
CROSSREFS
Sequence in context: A372325 A158704 A131854 * A160530 A214518 A331866
KEYWORD
nonn
EXTENSIONS
More terms from Wesley Ivan Hurt, Jun 25 2014
STATUS
approved