login
Primes congruent to 37 mod 39.
2

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

%S 37,193,271,349,661,739,1051,1129,1597,1753,1831,1987,2143,2221,2377,

%T 2689,2767,3001,3079,3313,3391,3469,3547,4093,4327,4483,4561,4639,

%U 4951,5107,5419,5653,6043,6121,6199,6277,6823,7057,7213,7369,7603,7681,7759,7993

%N Primes congruent to 37 mod 39.

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

%t Select[Range[37, 20000, 39], PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Jul 02 2011 *)

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

%o (PARI) select(n->n%39==37,primes(1000)) \\ _Charles R Greathouse IV_, Jul 02, 2011

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

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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