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.

A099362 Number of times the n-th prime is crossed off in the sieve of A099361.

This page as a plain text file.
%I A099362 #8 Aug 03 2014 14:01:21
%S A099362 0,0,1,0,2,0,1,1,1,0,3,0,1,1,1,0,2,1,2,1,1,0,2,0,2,1,1,0,2,0,1,3,1,0,
%T A099362 2,0,1,1,3,0,2,0,1,1,2,1,2,0,2,1,1,0,3,0,1,1,1,1,2,1,1,1,1,0,2,0,2,2,
%U A099362 2,0,3,0,1,2,1,0,2,0,1,1,2,0,2,1,1,2,1,1,2,0,1,1,1,0,3,0,3,1,1,0,3,1,1,1,1
%N A099362 Number of times the n-th prime is crossed off in the sieve of A099361.
%t A099362 nn = 300; a = Prime[Range[nn]]; cnt = Table[0, {nn}]; Do[p = a[[i]]; If[p > 0, Do[a[[j]] = 0; cnt[[j]]++, {j, i + p, nn, p}]], {i, nn}]; cnt (* _T. D. Noe_, Apr 15 2011 *)
%K A099362 nonn,easy
%O A099362 1,5
%A A099362 _N. J. A. Sloane_, Nov 18 2004
%E A099362 More terms from _Ray Chandler_, Nov 19 2004