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.

A218208 Number of primes up to 10^n that are of the form (k-1)^2 + k^2.

Original entry on oeis.org

1, 4, 10, 26, 68, 175, 461, 1225, 3349, 9266, 26516, 76334, 221763
Offset: 1

Views

Author

Martin Renner, Oct 23 2012

Keywords

Crossrefs

Programs

  • Mathematica
    n = 0; cnt = 0; Table[While[n++; p = 2*n^2 - 2*n + 1; p < 10^e, If[PrimeQ[p], cnt++]]; n--; cnt, {e, 10}] (* T. D. Noe, Oct 23 2012 *)

Formula

a(n) = sum(A218207(k), k=1..n)