Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #21 Oct 01 2024 03:08:29
%S 2,157,281,467,653,839,1087,1459,1583,1831,2017,2141,2203,2389,2699,
%T 3257,3319,3691,3877,4001,4373,4621,4931,4993,5179,5303,5737,5861,
%U 5923,6047,6481,6791,6977,7039,7349,7411,7907,8093,8527,8713,8837,9209,9643,9767
%N Primes congruent to 2 mod 31.
%H Vincenzo Librandi, <a href="/A142006/b142006.txt">Table of n, a(n) for n = 1..1000</a>
%F {2} UNION A142874. - _R. J. Mathar_, Jul 20 2008
%F a(n) ~ 30n log n. - _Charles R Greathouse IV_, Apr 28 2015
%t Select[Range[2,20000,31],PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Apr 07 2011 *)
%o (Magma) [p: p in PrimesUpTo(12000) | p mod 31 eq 2 ]; // _Vincenzo Librandi_, Aug 17 2012
%o (PARI) select(n->n%31==2, primes(1000)) \\ _Charles R Greathouse IV_, Apr 28 2015
%Y Cf. A000040, A141977, A142005.
%K nonn,easy
%O 1,1
%A _N. J. A. Sloane_, Jul 11 2008