The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A369109 a(n) is the number of pairs of twin primes p and p+2 both less than or equal to 10^n such that p is congruent to 1 modulo 4. 4
1, 4, 19, 105, 604, 4046, 29482, 220419, 1712731, 13706592, 112196635, 935286453 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Gareth A. Jones and Alexander K. Zvonkin, A number-theoretic problem concerning pseudo-real Riemann surfaces, arXiv:2401.00270 [math.NT], 2023. See Table 4 at page 13.
MATHEMATICA
a[n_] := Length[Select[Range[10^n-2], PrimeQ[#] && PrimeQ[#+2] && Mod[#, 4] == 1 &]]; Array[a, 10]
PROG
(PARI) lista(nmax) = {my(prev = 2, c = 0, pow = 10, n = 1, nm = nmax + 1); forprime(p = 3, , if(p > pow, print1(c, ", "); pow *= 10; n++; if(n == nm, break)); if(prev % 4 == 1 && p == prev + 2, c++); prev = p); } \\ Amiram Eldar, Jun 03 2024
CROSSREFS
Sequence in context: A367239 A062265 A088129 * A082030 A348802 A052751
KEYWORD
nonn,more,changed
AUTHOR
Stefano Spezia, Jan 13 2024
EXTENSIONS
a(11)-a(12) from Amiram Eldar, Jun 03 2024
STATUS
approved

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 June 3 23:16 EDT 2024. Contains 373088 sequences. (Running on oeis4.)