login
Primes congruent to 25 mod 27.
4

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

%S 79,241,349,457,619,673,727,997,1051,1213,1321,1429,1483,1699,1753,

%T 1861,2131,2239,2293,2347,2617,2671,2833,2887,3049,3319,3373,3643,

%U 3697,3967,4021,4129,4507,4561,4723,4831,4993,5101,5209,5479,5641,5749,5857,6073

%N Primes congruent to 25 mod 27.

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

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

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

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

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

%Y Cf. A000040, A141965.

%K nonn,easy

%O 1,1

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