login

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

Primes congruent to 5 mod 56.
1

%I #9 Sep 08 2022 08:45:37

%S 5,61,173,229,397,509,677,733,1013,1069,1181,1237,1741,2357,2693,2749,

%T 2861,2917,3253,3533,3701,4093,4261,4373,4597,4877,4933,5101,5381,

%U 5437,5717,6053,6221,6277,6389,6781,6949,7229,7621,7789,7901,8069,8237,8293,8461

%N Primes congruent to 5 mod 56.

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

%t Select[Prime[Range[1300]], MemberQ[{5}, Mod[#, 56]] &] (* _Vincenzo Librandi_, Sep 01 2012 *)

%t Select[Range[5,9000,56],PrimeQ] (* _Harvey P. Dale_, Jul 17 2017 *)

%o (Magma) [p: p in PrimesUpTo(10000) | p mod 56 eq 5 ]; // _Vincenzo Librandi_, Sep 01 2012

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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