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.

A182265 Number of primes p < 10^n such that 4*p+1 is also prime.

Original entry on oeis.org

2, 9, 31, 176, 1057, 7422, 53709, 407198, 3198946, 25773602, 212205881, 1777532673
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    f[n_] := Length[Select[Range[10^n], PrimeQ[#] && PrimeQ[4#+1]&]]; Table[f[n], {n,7}]
  • PARI
    a(n)=my(s=0); forprime(p=2,10^n,s+=isprime(4*p+1));s \\ Charles R Greathouse IV, Apr 23 2012

Extensions

a(10)-a(12) from Charles R Greathouse IV, Apr 23 2012