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

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

%S 3,5,7,13,17,19,31,41,47,59,61,73,83,89,97,101,103,131,139,157,167,

%T 173,181,199,223,227,229,241,251,257,269,271,283,293,307,311,313,349,

%U 353,367,383,397,409,419,433,439

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

%C Primes p such that A140686(p) = 0. - _Michael Somos_, Feb 12 2011

%C Primes (along with 2) which cannot be written in the form a^2 + 7*b^2, where a > 0, b > 0. - _V. Raman_, Sep 08 2012

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

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

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

%Y Cf. A000040.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_