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.

A082534 Greatest prime 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

2, 5, 5, 17, 23, 41, 53, 67, 83, 127, 83, 197, 233, 281, 311, 379, 311, 499, 563, 479, 431, 733, 857, 953, 1019, 1151, 1259, 1361, 1439, 1583, 1523, 1823, 1607, 2099, 1637, 2417, 2579, 2719, 2909, 2927, 3137, 3389, 3257, 3821, 3527, 4217, 4421, 4651, 4871
Offset: 1

Views

Author

Naohiro Nomoto, May 02 2003

Keywords

Examples

			For n=10; 29 is the 10th prime, largest prime in the sum = 29. 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. 127 is the greatest prime, so a(10)=127.
		

Programs

  • PARI
    for(n=1, 1000, s=0; forstep(j=n, 1, -1, s=s+prime(j); if(isprime(s), p=s)); write("b082534.txt", n " " p)) /* Donovan Johnson, Apr 10 2013 */