login
Primes congruent to 27 mod 31.
3

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

%S 89,151,337,461,523,647,709,1019,1453,1949,2011,2383,2693,2879,3251,

%T 3313,3499,3623,4057,4243,4801,4987,5297,5483,5669,6599,6661,6971,

%U 7219,7529,7591,7901,7963,8087,8273,8521,8707,8831,8893,9203,10009,10133,10567,10691

%N Primes congruent to 27 mod 31.

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

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

%t Select[Range[27,20000,31],PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Apr 30 2011 *)

%o (Magma) [p: p in PrimesUpTo(12000) | p mod 31 eq 27 ]; // _Vincenzo Librandi_, Aug 18 2012

%o (PARI) is(n)=isprime(n) && n%31==27 \\ _Charles R Greathouse IV_, Jul 02 2016

%Y Cf. A000040, A142005, A142006, A142029.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_, Jul 11 2008