login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A321018
a(n) = round(pi(n)/2).
1
0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13
OFFSET
1,5
COMMENTS
More terms than usual are displayed in order to distinguish this from neighboring sequences.
MATHEMATICA
Floor[#/2+1/2]&/@Accumulate[Table[If[PrimeQ[n], 1, 0], {n, 100}]] (* Harvey P. Dale, Feb 21 2022 *)
CROSSREFS
Suggested by A321005.
Sequence in context: A321017 A138194 A133876 * A340764 A152467 A242602
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 09 2018
STATUS
approved