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

%I #16 Aug 09 2024 01:55:44

%S 2,3,5,11,17,19,23,31,37,47,53,59,61,67,73,79,89,101,103,107,109,131,

%T 137,149,151,157,163,173,179,191,193,199,227,229,233,241,257,263,269,

%U 271,277,283,311,313,317,331,347

%N Primes congruent to {2, 3, 4, 5} (mod 7).

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

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

%o (Magma) [p: p in PrimesUpTo(500) | p mod 7 in [2, 3, 4, 5]]; // _Vincenzo Librandi_, Aug 08 2012

%Y Cf. A000040.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_