login
Primes congruent to {3, 4, 5, 6} mod 7.
2

%I #10 Sep 08 2022 08:44:56

%S 3,5,11,13,17,19,31,41,47,53,59,61,67,73,83,89,97,101,103,109,131,137,

%T 139,151,157,167,173,179,181,193,199,223,227,229,241,251,257,263,269,

%U 271,277,283,293,307,311,313,347

%N Primes congruent to {3, 4, 5, 6} mod 7.

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

%t Select[Prime[Range[3000]],MemberQ[{3,4,5,6},Mod[#,7]]&] (* _Vincenzo Librandi_, Aug 12 2012 *)

%o (Magma) [ p: p in PrimesUpTo(400) | p mod 7 in {3..6} ]; // _Vincenzo Librandi_, Aug 12 2012

%Y Cf. A000040.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_