login
Primes congruent to 22 mod 27.
1

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

%S 103,157,211,373,643,751,859,967,1021,1129,1237,1291,1399,1453,1669,

%T 1723,1777,1831,1993,2371,2749,2803,2857,3019,3181,3343,3559,3613,

%U 4099,4153,4261,4423,4639,4801,4909,5179,5233,5449,5503,5557,5827,5881,6043,6151

%N Primes congruent to 22 mod 27.

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

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

%t Select[Range[22, 30000, 27], PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Jun 21 2011 *)

%o (Magma) [p: p in PrimesUpTo(7000) | p mod 27 eq 22 ]; // _Vincenzo Librandi_, Aug 16 2012

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

%Y Cf. A000040, A141964, A141965.

%K nonn,easy

%O 1,1

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