login
Primes congruent to 7 mod 32.
1

%I #12 Sep 08 2022 08:45:35

%S 7,71,103,167,199,263,359,487,647,743,839,967,1031,1063,1223,1319,

%T 1447,1511,1543,1607,1831,2087,2311,2503,2663,2791,2887,3079,3271,

%U 3463,3527,3559,3623,3719,3847,3911,3943,4007,4231,4327,4391,4423,4519,4583,4679

%N Primes congruent to 7 mod 32.

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

%F a(n) ~ 16n log n. - _Charles R Greathouse IV_, Jul 03 2016

%t Select[Prime[Range[900]],Mod[#,32]==7&] (* _Harvey P. Dale_, Mar 15 2011 *)

%t Select[Prime[Range[2000]],MemberQ[{7},Mod[#,32]]&] (* _Vincenzo Librandi_, Aug 18 2012 *)

%o (Magma) [p: p in PrimesUpTo(6000) | p mod 32 eq 7 ]; // _Vincenzo Librandi_, Aug 18 2012

%o (PARI) is(n)=isprime(n) && n%32==7 \\ _Charles R Greathouse IV_, Jul 03 2016

%Y Cf. A000040.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_, Jul 11 2008