login
Primes congruent to 17 mod 31.
1

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

%S 17,79,389,761,823,947,1009,1319,1381,1567,1753,1877,2063,2311,2621,

%T 2683,3613,3923,4357,4481,4729,5039,5101,5659,5783,6217,6899,6961,

%U 7333,7457,7643,7829,8263,8387,8573,8821,9007,9689,10061,10247,10433,10867,11177

%N Primes congruent to 17 mod 31.

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

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

%o (PARI) is(n)=isprime(n) && n%31==17 \\ _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