|
|
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
|
|
|
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
|
|
|
KEYWORD
|
nonn,more,changed
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|