A152127 Sum of cousin primes < 10^n.
28, 766, 34522, 1706602, 107863996, 7379208796, 542100094312, 41248685420836, 3233516261489332, 260607555289408894, 21446383929686290726, 1795656778320649469818, 152541729206365604807782
Offset: 1
Examples
(3,7) and (7,11) are the cousin primes < 10. These add up to 28 the first entry in the sequence.
Links
- Cino Hilliard, Gcc Sum of cousin primes. [broken link]
- Eric Weisstein's World of Mathematics, Cousin Primes.
Programs
-
PARI
lista(pmax) = {my(sm = 10, prev = 2, pow = 10); forprime(p = 3, pmax, if(p == prev + 4, sm += (prev + p)); if(p > pow, print1(sm, ", "); pow *= 10); prev = p);} \\ Amiram Eldar, Jul 06 2024
Extensions
Data corrected by Amiram Eldar, Jul 06 2024
Comments