login
Primes congruent to {2, 7} mod 8.
1

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

%S 2,7,23,31,47,71,79,103,127,151,167,191,199,223,239,263,271,311,359,

%T 367,383,431,439,463,479,487,503,599,607,631,647,719,727,743,751,823,

%U 839,863,887,911,919,967,983,991

%N Primes congruent to {2, 7} mod 8.

%H Ray Chandler, <a href="/A045382/b045382.txt">Table of n, a(n) for n = 1..10000</a> (first 1000 terms from Vincenzo Librandi)

%F a(n) = A007522(n), n >= 1. _R. J. Mathar_, Nov 22 2006

%t Select[Prime[Range[300]],MemberQ[{2, 7},Mod[#,8]]&] (* _Vincenzo Librandi_, Aug 11 2012 *)

%o (Magma) [p: p in PrimesUpTo(1100) | p mod 8 in [2, 7]]; // _Vincenzo Librandi_, Aug 11 2012

%Y Cf. A000040.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_