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.
%I A064662 #15 Sep 08 2022 08:45:04 %S A064662 -2,-1,0,0,0,1,1,2,2,1,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,6,6,5,5,5, %T A064662 6,5,6,6,6,6,6,6,7,7,7,8,8,8,7,7,8,8,8,9,9,9,9,9,10,10,10,11,10,9,10, %U A064662 11,11,10,10,10,10,11,11,11,11,11,12,12,12,12,12,12,12 %N A064662 a(n) = n - round( prime(n)/log(prime(n)) ). %H A064662 Harry J. Smith, <a href="/A064662/b064662.txt">Table of n, a(n) for n = 1..1000</a> %t A064662 rpl[n_]:=Module[{p=Prime[n]},n-Round[p/Log[p]]]; Array[rpl,90] (* _Harvey P. Dale_, May 20 2019 *) %o A064662 (PARI) { for (n=1, 1000, write("b064662.txt", n, " ", n - round( prime(n)/log(prime(n)) )) ) } \\ _Harry J. Smith_, Sep 21 2009 %o A064662 (Magma) [n - Round(NthPrime(n) / Log(NthPrime(n))): n in [1..100]]; // _Vincenzo Librandi_, May 25 2019 %Y A064662 Cf. A064659-A064663. %K A064662 sign %O A064662 1,1 %A A064662 _N. J. A. Sloane_, Oct 10 2001