login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Primes congruent to 7 mod 45.
3

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

%S 7,97,277,367,457,547,727,907,997,1087,1447,1627,1987,2347,2437,2617,

%T 2707,2797,2887,3067,3517,3607,3697,3877,3967,4057,4327,4507,4597,

%U 4957,5227,5407,5857,6037,6217,6397,6577,7027,7207,7297,7477,7927,8017,8287,8377

%N Primes congruent to 7 mod 45.

%C Primes congruent to 7 mod 90. - Vladimir Joseph Stephan Orlovsky, Jul 14 2011.

%H Vincenzo Librandi, <a href="/A142315/b142315.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[Range[7, 30000, 90], PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Jul 14 2011 *)

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

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

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

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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