login
Primes congruent to 40 mod 41.
2

%I #11 Sep 08 2022 08:45:36

%S 163,409,491,983,1229,1721,2131,2213,2377,2459,3361,3607,3853,4099,

%T 4591,4673,4919,5657,5821,5903,6067,7297,7789,8117,8363,8527,8609,

%U 9511,9839,10331,10987,11069,11807,11971,12791,13037,13693,14431,14759,14923,15497

%N Primes congruent to 40 mod 41.

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

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

%t Select[Prime[Range[5000]],MemberQ[{40},Mod[#,41]]&] (* _Vincenzo Librandi_, Aug 24 2012 *)

%t Select[Range[40,16000,41],PrimeQ] (* _Harvey P. Dale_, Oct 11 2012 *)

%o (Magma) [p: p in PrimesUpTo(17000) | p mod 41 eq 40 ]; // _Vincenzo Librandi_, Aug 24 2012

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

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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