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.

A104251 Sum of nonprime digits of n-th prime.

Original entry on oeis.org

0, 0, 0, 0, 2, 1, 1, 10, 0, 9, 1, 0, 5, 4, 4, 0, 9, 7, 6, 1, 0, 9, 8, 17, 9, 2, 1, 1, 10, 2, 1, 2, 1, 10, 14, 2, 1, 7, 7, 1, 10, 10, 11, 10, 10, 19, 2, 0, 0, 9, 0, 9, 5, 1, 0, 6, 15, 1, 0, 9, 8, 9, 0, 2, 1, 1, 1, 0, 4, 13, 0, 9, 6, 0, 9, 8, 17, 9, 5, 13, 14, 5, 5, 4, 13, 8, 17, 4, 11, 10, 10, 13, 12
Offset: 1

Views

Author

Zak Seidov, Feb 26 2005

Keywords

Examples

			a(6)=1 because sum of composite (nonprime) digits of prime(6)=13 is 1.
		

Crossrefs

Cf. A000040 (primes).
Cf. A007605 (sum of digits of primes), A104250 (sum of prime digits of n-th prime).

Formula

a(n) = A007605(n) - A104250(n).