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.

A186903 Number of Gaussian primes (in the first half quadrant; i.e., 0 to 45 degrees) with real part <= 2^n.

Original entry on oeis.org

1, 2, 5, 14, 36, 112, 354, 1193, 4099, 14374, 51265, 185143, 675016, 2481768, 9183221, 34179072, 127826852
Offset: 0

Views

Author

Robert G. Wilson v, Mar 02 2011

Keywords

Crossrefs

Cf. A055683.

Programs

  • Mathematica
    c = 1; lst = {}; Do[ Do[ If[ PrimeQ[j + k*I, GaussianIntegers -> True], c++], {j, 2^(n - 1) + 1, 2^n}, {k, 0, j}]; AppendTo[lst, c]; Print@ c, {n, 16}]