cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A045326 Primes congruent to {2, 3} mod 4.

This page as a plain text file.
%I A045326 #40 Jun 23 2023 10:03:21
%S A045326 2,3,7,11,19,23,31,43,47,59,67,71,79,83,103,107,127,131,139,151,163,
%T A045326 167,179,191,199,211,223,227,239,251,263,271,283,307,311,331,347,359,
%U A045326 367,379,383,419,431,439,443,463,467,479,487,491,499,503,523,547,563,571,587,599,607,619
%N A045326 Primes congruent to {2, 3} mod 4.
%C A045326 Apart from initial term 2, same as A002145 (primes of the form 4k+3).
%C A045326 Primes not in A002144. - _Juri-Stepan Gerasimov_, Oct 16 2010
%H A045326 Ray Chandler, <a href="/A045326/b045326.txt">Table of n, a(n) for n = 1..10000</a> (first 1000 terms from Vincenzo Librandi)
%F A045326 a(n) ~ 2n log n. - _Charles R Greathouse IV_, Dec 11 2016
%t A045326 Select[Prime[Range[120]], MemberQ[{2, 3}, Mod[#, 4]] &] (* _Vladimir Joseph Stephan Orlovsky_, Feb 18 2012 *)
%o A045326 (Magma) [p: p in PrimesUpTo(740) | p mod 4 in [2,3]] // _Vincenzo Librandi_, Dec 18 2010
%o A045326 (PARI) is(n)=n%4>1 && isprime(n) \\ _Charles R Greathouse IV_, Dec 11 2016
%o A045326 (Python)
%o A045326 from itertools import count, islice
%o A045326 from sympy import prime
%o A045326 def A045326_gen(): # generator of terms
%o A045326     return filter(lambda n:n>>1&1,map(prime,count(1)))
%o A045326 A045326_list = list(islice(A045326_gen(),20)) # _Chai Wah Wu_, Jun 23 2023
%K A045326 nonn,easy
%O A045326 1,1
%A A045326 _N. J. A. Sloane_