%I #14 Nov 21 2024 18:35:05
%S 181,367,491,677,739,863,1049,1297,1483,1607,1669,1979,2351,2909,2971,
%T 3343,3467,3529,4211,4273,4397,4583,4831,6133,6257,6691,7001,7187,
%U 7559,7621,7993,8117,8179,8737,8861,8923,9109,9419,9791,10039,10163,10597,11093,11279
%N Primes congruent to 26 mod 31.
%H Vincenzo Librandi, <a href="/A142030/b142030.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[26,20000,31],PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Apr 30 2011 *)
%t Select[Prime[Range[2000]],Mod[#,31]==26&] (* _Harvey P. Dale_, Nov 21 2024 *)
%o (Magma) [p: p in PrimesUpTo(12000) | p mod 31 eq 26 ]; // _Vincenzo Librandi_, Aug 18 2012
%o (PARI) is(n)=isprime(n) && n%31==26 \\ _Charles R Greathouse IV_, Jul 03 2016
%Y Cf. A000040, A142005, A142006, A142029.
%K nonn,easy,changed
%O 1,1
%A _N. J. A. Sloane_, Jul 11 2008