Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #12 Sep 08 2022 08:45:35
%S 173,359,421,607,1103,1289,1723,1847,2281,2467,2591,2777,2963,3583,
%T 3769,4079,4327,4451,4513,4637,5009,5381,5443,5939,6311,6373,6869,
%U 7489,8171,8233,8419,8543,9349,9473,9721,9907,10093,10589,10651,10837,11519,11953
%N Primes congruent to 18 mod 31.
%H Vincenzo Librandi, <a href="/A142022/b142022.txt">Table of n, a(n) for n = 1..1000</a>
%F a(n) ~ 30n log n. - _Charles R Greathouse IV_, Jul 03 2016
%t Select[Range[18,20000,31],PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Apr 30 2011 *)
%o (Magma) [p: p in PrimesUpTo(12000) | p mod 31 eq 18 ]; // _Vincenzo Librandi_, Aug 17 2012
%o (PARI) is(n)=isprime(n) && n%31==18 \\ _Charles R Greathouse IV_, Jul 03 2016
%Y Cf. A000040, A142005, A142006, A142019.
%K nonn,easy
%O 1,1
%A _N. J. A. Sloane_, Jul 11 2008