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

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

%S 3,5,13,17,19,29,31,41,43,47,59,61,71,73,83,89,97,101,103,113,127,131,

%T 139,157,167,173,181,197,199,211,223,227,229,239,241,251,257,269,271,

%U 281,283,293,307,311,313,337,349

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

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

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

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

%Y Cf. A000040.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_