login
Primes congruent to 17 mod 28.
1

%I #11 Sep 08 2022 08:45:35

%S 17,73,101,157,241,269,353,409,521,577,661,773,829,857,941,997,1109,

%T 1193,1249,1277,1361,1613,1669,1697,1753,1949,2089,2341,2593,2621,

%U 2677,2789,2957,3041,3181,3209,3433,3461,3517,3769,3797,3853,3881,4021,4049,4133

%N Primes congruent to 17 mod 28.

%H Vincenzo Librandi, <a href="/A141972/b141972.txt">Table of n, a(n) for n = 1..1000</a>

%F a(n) ~ 12n log n. - _Charles R Greathouse IV_, Jul 03 2016

%t Select[Prime[Range[1500]],MemberQ[{17},Mod[#,28]]&] (* _Vincenzo Librandi_, Aug 17 2012 *)

%t Select[Range[17,5000,28],PrimeQ] (* _Harvey P. Dale_, Mar 23 2021 *)

%o (Magma) [p: p in PrimesUpTo(5000) | p mod 28 eq 17 ]; // _Vincenzo Librandi_, Aug 17 2012

%o (PARI) is(n)=isprime(n) && n%28==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