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.

A065686 Number of primes <= prime(n) which begin with a 7.

This page as a plain text file.
%I A065686 #14 Dec 15 2024 11:01:13
%S A065686 0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,3,4,4,4,4,4,4,4,4,4,4,4,4,4,
%T A065686 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
%U A065686 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4
%N A065686 Number of primes <= prime(n) which begin with a 7.
%H A065686 Harry J. Smith, <a href="/A065686/b065686.txt">Table of n, a(n) for n = 1..1000</a>
%e A065686 a(3) = 0, a(4) = 1. a(664579) = 71564 (A000040(664579) = 9999991 is the largest prime < 10^7).
%o A065686 (PARI) lista(n) = { my(a=[p\10^logint(p,10)==7 | p<-primes(n)]); for(i=2, #a, a[i]+=a[i-1]); a} \\ _Harry J. Smith_, Oct 26 2009
%Y A065686 Cf. A000040, A045713, A065680.
%K A065686 base,nonn
%O A065686 1,20
%A A065686 _Reinhard Zumkeller_, Nov 13 2001