%I #7 Jun 17 2024 09:14:41
%S 0,2,4,6,9,12,15,18,21,26,30,34,39,42,45,50,56,60,64,69,72,76,81,86,
%T 93,99,102,105,108,111,120,129,134,138,144,150,154,160,165,170,176,
%U 180,186,192,195,198,205,217,225,228,231,236,240,246,254,260,266,270,274,279
%N a(n) = n-th grid point that is covered by the zig-zag function for prime numbers such that the grid point is a vertex in the graph of the function.
%C Also {0, 2} together the numbers A024675.
%C See A162345 for the first differences.
%H Paolo Xausa, <a href="/A162800/b162800.txt">Table of n, a(n) for n = 0..10000</a>
%t Join[{0, 2}, Most[#] + Differences[#]/2] & [Prime[Range[2, 100]]] (* _Paolo Xausa_, Jun 17 2024 *)
%Y Cf. A000040, A006005, A024675, A058296, A079424, A162345, A162801, A162802.
%K easy,nonn
%O 0,2
%A _Omar E. Pol_, Jul 16 2009
%E Edited by _Omar E. Pol_, Jul 18 2009