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.

A067112 Let N = 2357111317192329313741434753..., the concatenation of the primes; a(n) = sum of first n digits of N.

Original entry on oeis.org

0, 2, 5, 10, 17, 18, 19, 20, 23, 24, 31, 32, 41, 43, 46, 48, 57, 60, 61, 64, 71, 75, 76, 80, 83, 87, 94, 99, 102, 107, 116, 122, 123, 129, 136, 143, 144, 151, 154, 161, 170, 178, 181, 189, 198, 207, 214, 215, 215, 216, 217, 217, 220, 221, 221, 228, 229, 229, 238, 239
Offset: 0

Views

Author

Amarnath Murthy, Jan 08 2002

Keywords

Examples

			a(5) = 2+3+5+7+1 = 18.
		

Programs

  • Mathematica
    s=0;ss={0};Do[id=IntegerDigits[Prime[k]];Do[AppendTo[ss,s=s+id[[i]]],{i,Length[id]}],{k,100}];ss (* Zak Seidov, Jan 23 2015 *)
  • PARI
    {s=0;print1(0", ");for(k=1,100,id=digits(prime(k));for(i=1,# id,print1(s=s+id[i]", ")))} \\ Zak Seidov, Jan 24 2015

Extensions

More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Apr 01 2003