login
Primes congruent to 20 mod 37.
3

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

%S 131,353,797,1019,1093,1759,1907,2129,2203,2351,2647,3313,3461,4127,

%T 4201,4349,4423,4793,5237,5903,6199,6421,6569,6791,7013,7309,7457,

%U 7753,7901,8123,8419,8641,8863,9011,9677,9973,10343,10639,10861,11083,11527,11897

%N Primes congruent to 20 mod 37.

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

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

%t Select[Range[20,30000,37],PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, May 11 2011 *)

%t Select[Prime[Range[5000]],MemberQ[{20},Mod[#,37]]&] (* _Vincenzo Librandi_, Aug 19 2012 *)

%o (Magma) [p: p in PrimesUpTo(15000) | p mod 37 eq 20 ]; // _Vincenzo Librandi_, Aug 19 2012

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

%Y Cf. A000040, A142127, A142128.

%K nonn,easy

%O 1,1

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