login
Primes congruent to 19 mod 27.
1

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

%S 19,73,127,181,397,613,829,883,937,991,1153,1423,1531,1693,1747,1801,

%T 2017,2179,2287,2341,2503,2557,2719,3259,3313,3529,3583,3637,3691,

%U 3853,3907,4177,4231,4339,4447,4663,4933,4987,5419,5527,5581,5689,5743,5851,6067

%N Primes congruent to 19 mod 27.

%H Vincenzo Librandi, <a href="/A141960/b141960.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[19, 30000, 27], PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Jun 21 2011 *)

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

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

%Y Cf. A000040, A141963, A141964, A141965.

%K nonn,easy

%O 1,1

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