login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Primes congruent to 31 mod 37.
1

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

%S 31,179,401,919,1289,1511,1733,2029,2251,2399,2473,2621,2843,2917,

%T 3361,3583,4027,4397,5507,5581,6173,6247,6469,6691,7283,7727,7949,

%U 8171,8467,8689,8837,9059,9133,9281,10169,10243,10391,10613,10687,10909,11057,11131

%N Primes congruent to 31 mod 37.

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

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

%t Select[Prime[Range[2000]],Mod[#,37]==31&] (* _Harvey P. Dale_, Mar 04 2011 *)

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

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

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

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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