login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A142313 Primes congruent to 2 mod 45. 2

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

%S 2,47,137,227,317,587,677,857,947,1217,1307,1487,1667,1847,2027,2207,

%T 2297,2477,2657,2837,2927,3467,3557,3917,4007,4457,4547,4637,4817,

%U 5087,5717,5807,5897,5987,6257,6977,7247,7517,7607,7877,8147,8237,8597,8867,9137

%N Primes congruent to 2 mod 45.

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

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

%t Select[Prime[Range[3000]],MemberQ[{2},Mod[#,45]]&] (* _Vincenzo Librandi_, Aug 25 2012 *)

%t Select[Range[2,9200,45],PrimeQ] (* _Harvey P. Dale_, Apr 01 2014 *)

%o (Magma) [p: p in PrimesUpTo(10000) | p mod 45 eq 2]; // _Vincenzo Librandi_, Aug 25 2012

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

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 30 23:08 EDT 2024. Contains 372141 sequences. (Running on oeis4.)