login

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

Primes congruent to 2 mod 51.
1

%I #11 Sep 08 2022 08:45:36

%S 2,53,257,359,461,563,971,1277,1481,1583,1787,1889,2297,2399,2909,

%T 3011,3623,3929,4133,4337,4643,5051,5153,5867,6173,6581,7193,7499,

%U 7703,7907,8009,8111,9029,9437,9539,9743,10151,10253,10457,10559,11069,11171,11273

%N Primes congruent to 2 mod 51.

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

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

%t Select[Prime[Range[2000]], MemberQ[{2}, Mod[#, 51]] &] (* _Vincenzo Librandi_, Aug 28 2012 *)

%t Select[Range[2,12000,51],PrimeQ] (* _Harvey P. Dale_, Mar 10 2013 *)

%o (Magma) [p: p in PrimesUpTo(13000) | p mod 51 eq 2]; // _Vincenzo Librandi_, Aug 28 2012

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

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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