login
Primes congruent to 8 mod 45.
2

%I #11 Oct 12 2024 17:32:30

%S 53,233,503,593,683,773,863,953,1223,1493,1583,2213,2393,2663,2753,

%T 2843,3023,3203,3833,3923,4013,4283,4373,4463,4643,4733,5003,5273,

%U 5813,5903,6173,6263,6353,6803,6983,7253,7433,7523,7703,7793,7883,8243,8423,8513

%N Primes congruent to 8 mod 45.

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

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

%t Select[Prime[Range[3000]],MemberQ[{8},Mod[#,45]]&] (* _Vincenzo Librandi_, Aug 25 2012 *)

%t Select[Range[8,9000,45],PrimeQ] (* _Harvey P. Dale_, Oct 12 2024 *)

%o (Magma) [p: p in PrimesUpTo(10000) | p mod 45 eq 8]; // _Vincenzo Librandi_, Aug 25 2012

%o (PARI) is(n)=isprime(n) && n%45==8 \\ _Charles R Greathouse IV_, Jul 02 2016

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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