Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #11 Oct 02 2022 15:42:54
%S 17,97,137,257,337,457,577,617,857,937,977,1097,1217,1297,1657,1697,
%T 1777,2017,2137,2297,2377,2417,2617,2657,2777,2857,2897,3137,3217,
%U 3257,3457,3617,3697,4057,4177,4217,4297,4337,4457,4657,4817,4937,5297,5417,5657
%N Primes congruent to 17 mod 40.
%H Vincenzo Librandi, <a href="/A142189/b142189.txt">Table of n, a(n) for n = 1..1000</a>
%F a(n) ~ 16n log n. - _Charles R Greathouse IV_, Jul 03 2016
%t Select[Prime[Range[2000]],MemberQ[{17},Mod[#,40]]&] (* _Vincenzo Librandi_, Aug 20 2012 *)
%t Select[Range[17,6000,40],PrimeQ] (* _Harvey P. Dale_, Oct 02 2022 *)
%o (Magma) [p: p in PrimesUpTo(7000) | p mod 40 eq 17]; // _Vincenzo Librandi_, Aug 20 2012
%o (PARI) is(n)=isprime(n) && n%40==17 \\ _Charles R Greathouse IV_, Jul 03 2016
%Y Cf. A000040.
%K nonn,easy
%O 1,1
%A _N. J. A. Sloane_, Jul 11 2008