login
Primes congruent to 19 mod 31.
5

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

%S 19,577,701,887,1259,1321,1693,1879,2003,2251,2437,3119,3181,3491,

%T 3677,3739,3863,4049,4111,4297,4421,4483,4793,5227,5351,5413,6343,

%U 6529,6653,7211,7459,7583,8017,8389,8513,8699,8761,9133,9257,9319,9629,10559,10993

%N Primes congruent to 19 mod 31.

%H Vincenzo Librandi, <a href="/A142023/b142023.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[19,20000,31],PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Apr 30 2011 *)

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

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

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

%K nonn,easy

%O 1,1

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