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.

A118663 Index of the least prime dividing the n-th composite number: A000720(A020639(A002808(n))).

Original entry on oeis.org

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

Views

Author

Giovanni Teofilatto, May 19 2006

Keywords

Crossrefs

Cf. A056608.

Programs

  • Mathematica
    PrimePi[FactorInteger[#][[1,1]]]&/@Select[Range[200],CompositeQ] (* Harvey P. Dale, May 13 2023 *)
  • PARI
    for(i=2,999,isprime(i)||print1(primepi(factor(i)[1,1])",")) \\ - M. F. Hasler, Apr 03 2012

Formula

A118663 = A000720 o A056608. - M. F. Hasler, Apr 03 2012