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

A142189
Primes congruent to 17 mod 40.
1
17, 97, 137, 257, 337, 457, 577, 617, 857, 937, 977, 1097, 1217, 1297, 1657, 1697, 1777, 2017, 2137, 2297, 2377, 2417, 2617, 2657, 2777, 2857, 2897, 3137, 3217, 3257, 3457, 3617, 3697, 4057, 4177, 4217, 4297, 4337, 4457, 4657, 4817, 4937, 5297, 5417, 5657
OFFSET
1,1
LINKS
FORMULA
a(n) ~ 16n log n. - Charles R Greathouse IV, Jul 03 2016
MATHEMATICA
Select[Prime[Range[2000]], MemberQ[{17}, Mod[#, 40]]&] (* Vincenzo Librandi, Aug 20 2012 *)
Select[Range[17, 6000, 40], PrimeQ] (* Harvey P. Dale, Oct 02 2022 *)
PROG
(Magma) [p: p in PrimesUpTo(7000) | p mod 40 eq 17]; // Vincenzo Librandi, Aug 20 2012
(PARI) is(n)=isprime(n) && n%40==17 \\ Charles R Greathouse IV, Jul 03 2016
CROSSREFS
Cf. A000040.
Sequence in context: A094407 A131204 A070186 * A325068 A264823 A081593
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jul 11 2008
STATUS
approved