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.

A130739 Sum of primes < 2^n.

Original entry on oeis.org

0, 5, 17, 41, 160, 501, 1720, 6081, 22548, 80189, 289176, 1070091, 3908641, 14584641, 54056763, 202288087, 761593692, 2867816043, 10862883985, 41162256126, 156592635694, 596946687124, 2280311678414, 8729068693022
Offset: 1

Views

Author

Graeme McRae, Jul 06 2007

Keywords

Examples

			a(3) is 17 because the sum of primes less than 2^3 is 2+3+5+7=17.
		

Crossrefs

Programs

  • Mathematica
    Table[Sum[Prime[i], {i, PrimePi[2^n-1]}], {n, 1, 10}]
  • PARI
    a(n) = {s = 0; forprime(p=2, 2^n-1, s +=p); return (s);} \\ Michel Marcus, Jul 17 2013

Formula

a(n) = Sum_{i=2..2^n-1} A061397(i).