login
Primes congruent to 27 mod 50.
2

%I #13 Jul 24 2023 09:56:11

%S 127,227,277,577,677,727,827,877,977,1277,1327,1427,1627,1777,1877,

%T 2027,2377,2477,2677,2777,2927,3527,3677,3727,3877,4027,4127,4177,

%U 4327,4877,5077,5227,5477,5527,5827,5927,6277,6427,6577,6827,6977,7027,7127,7177

%N Primes congruent to 27 mod 50.

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

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

%t Select[Prime[Range[1000]], MemberQ[{27}, Mod[#, 50]] &] (* _Vincenzo Librandi_, Aug 28 2012 *)

%t Select[Range[27,7200,50],PrimeQ] (* _Harvey P. Dale_, Apr 08 2018 *)

%o (Magma) [p: p in PrimesUpTo(8000) | p mod 50 eq 27]; // _Vincenzo Librandi_, Aug 28 2012

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

%Y Cf. A000040, A141928.

%K nonn,easy

%O 1,1

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