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.

A082533 Number of primes p such that p can be expressed as the sum of consecutive primes with largest prime in the sum = n-th prime.

Original entry on oeis.org

1, 2, 1, 2, 2, 3, 3, 2, 3, 4, 2, 4, 4, 5, 5, 4, 2, 7, 4, 5, 4, 6, 6, 5, 6, 6, 6, 4, 3, 7, 6, 7, 5, 8, 3, 11, 11, 7, 12, 10, 3, 9, 8, 10, 7, 9, 11, 8, 11, 11, 8, 10, 8, 12, 6, 3, 6, 3, 6, 6, 9, 6, 5, 3, 5, 5, 7, 13, 7, 9, 13, 9, 5, 13, 12, 16, 12, 12, 15, 16, 11, 14, 8, 11, 15, 11, 15, 13, 12, 13, 13
Offset: 1

Views

Author

Naohiro Nomoto, May 01 2003

Keywords

Examples

			For n=10; 29 is the 10th prime. 29=29, 71=19+23+29, 101=13+17+19+23+29, 127=3+5+7+11+13+17+19+23+29. 29 and 71,101,127 are primes. so a(10)=4.
		

Programs

  • Mathematica
    Table[Length[Select[Accumulate[Reverse[Table[Prime[i], {i, n}]]], PrimeQ]], {n, 91}] (* Jayanta Basu, Apr 21 2013 *)