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.

Showing 1-4 of 4 results.

A185712 a(n) = number of primes <= n that end in 3.

Original entry on oeis.org

0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9
Offset: 1

Views

Author

N. J. A. Sloane, Feb 10 2011

Keywords

Comments

Partial sums of A185706.

Crossrefs

Programs

  • Mathematica
    Accumulate[Table[If[PrimeQ[n] && Mod[n, 10] == 3, 1, 0], {n, 50}]] (* G. C. Greubel, Jul 10 2017 *)

A185715 a(n) = number of primes <= n that end in 9.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
Offset: 1

Views

Author

N. J. A. Sloane, Feb 10 2011

Keywords

Comments

Partial sums of A185709.

Crossrefs

Programs

  • Mathematica
    Accumulate[Table[If[PrimeQ[n] && Mod[n, 10] == 9, 1, 0], {n, 50}]] (* G. C. Greubel, Jul 10 2017 *)
  • PARI
    a(n) = sum(k=1, n, if ((k % 10)==9, isprime(k))); \\ Michel Marcus, Jul 11 2017

A185711 a(n) = number of primes <= n that end in 1.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
Offset: 1

Views

Author

N. J. A. Sloane, Feb 10 2011

Keywords

Comments

Partial sums of A185705.

Crossrefs

Programs

  • Mathematica
    Accumulate[Table[If[PrimeQ[n]&&Mod[n,10]==1,1,0],{n,120}]] (* Harvey P. Dale, May 30 2016 *)

A300399 a(n) = number of primes that end in 7 among the first 10^n primes.

Original entry on oeis.org

2, 24, 254, 2508, 25015, 250014, 2500283, 25000402, 250002505, 2500005319, 25000014226, 250000051446
Offset: 1

Views

Author

G. L. Honaker, Jr., Mar 05 2018

Keywords

Examples

			a(1) = 2 because the first 10 primes are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, among which there are two primes ending in 7.
		

Crossrefs

Programs

  • PARI
    a(n) = #select(x->((x % 10) == 7), primes(10^n)); \\ Michel Marcus, Mar 07 2018

Formula

a(n) = A185714(A006988(n)). - Michel Marcus, Mar 20 2018

Extensions

a(3)-a(8) from Chuck Gaydos
a(9) from Jon E. Schoenfield, Mar 20 2018
a(10)-a(12) from Giovanni Resta, Mar 27 2018
Showing 1-4 of 4 results.