login
Primes congruent to 19 mod 64.
1

%I #17 Sep 08 2022 08:45:37

%S 19,83,211,467,659,787,1171,1427,1619,1747,1811,2003,2131,2579,2707,

%T 2963,3347,3539,3923,4051,4243,4691,5011,5651,5779,5843,6163,6547,

%U 6803,7187,7507,7699,8147,8467,9043,9491,9619,9811,10067,10259,10771,11027,11411

%N Primes congruent to 19 mod 64.

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

%t lst = {}; Do[p = Prime[n]; If[Mod[p, 64] == 19, AppendTo[lst, p]], {n, 7!}]; lst (* _Vladimir Joseph Stephan Orlovsky_, Feb 27 2009 *)

%t (* Somewhat faster program *) Select[Table[64n + 19, {n, 0, 200}], PrimeQ] (* _Harvey P. Dale_, Dec 13 2010 *)

%t Select[Prime[Range[1800]], MemberQ[{19}, Mod[#, 64]] &] (* _Vincenzo Librandi_, Sep 06 2012 *)

%o (Magma) [p: p in PrimesUpTo(12000) | p mod 64 eq 19 ]; // _Vincenzo Librandi_, Sep 06 2012

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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