login
Primes congruent to 2 mod 27.
3

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

%S 2,29,83,137,191,353,461,569,677,839,947,1109,1163,1217,1433,1487,

%T 1811,1973,2027,2081,2243,2297,2351,2459,2621,2729,2837,2999,3323,

%U 3539,3593,3701,3863,3917,4079,4133,4241,4349,4457,4673,4889,4943,5051,5483,5591

%N Primes congruent to 2 mod 27.

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

%F {2} UNION A142592. - _R. J. Mathar_, Jul 20 2008

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

%t Select[Prime[Range[900]],Mod[#,27]==2&] (* _Harvey P. Dale_, Apr 18 2011 *)

%o (Magma) [ p: p in PrimesUpTo(8000) | p mod 27 eq 2 ]; // _Vincenzo Librandi_, Apr 19 2011

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

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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