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.

Showing 1-2 of 2 results.

A235165 Primes which are sum of the first k consecutive composite numbers and such that the sum of the first consecutive k+1 composites and the sum of the first k+2 consecutive composites are also prime.

Original entry on oeis.org

997, 3889, 320375057, 423704707, 3431156159, 11650632419, 15909713927, 16906981181, 18170097067, 19703643541, 25534764667, 65405464363, 89483860811, 96873744973, 157599307213, 161983109531, 250812627893, 255555662521, 304165468751, 506667567067, 563313151277, 641930941499, 719915546257, 755132545199, 988899991367, 1002877111091, 1013997492671
Offset: 1

Views

Author

Robin Garcia, Jan 04 2014

Keywords

Examples

			a(1) = 997 is prime and sum of the first 35 composites from 4 to 51.
And 997 + 52 = 1049 is prime and 1049 + 54 = 1103 is prime. But 1103 + 55 is even and thus not prime.
		

Crossrefs

Programs

  • Mathematica
    Select[Partition[Accumulate[Select[Range[20*10^6],CompositeQ]],3,1], AllTrue[ #,PrimeQ]&][[All,1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Sep 30 2017 *)
  • PARI
    i=0; b=0; for( a=2, 2*10^6, if( !isprime(a) , i=i+1; b=b+a; if(( isprime(b) & isprime(b+a+1) &isprime(a+2)& isprime(b+2*a+4))||(isprime(b)&isprime(a+1)&isprime(b+a+2)&isprime(a+3)&isprime(b+2*a+6)),print1(b,", "))))

A235167 Primes which are the sum of the first k consecutive composite numbers and such that the sums of the first k+1, k+2 and k+3 consecutive composites are also prime.

Original entry on oeis.org

1041973527756883, 1367813419317223, 2061752246097991, 2952443719006597, 3103011021307399, 3372968619197677, 10155190978946137, 34071498970634821, 43003872349213873, 45743947962658333, 58096932030228859, 60092475306807649, 115486262684753671
Offset: 1

Views

Author

Robin Garcia, Jan 04 2014

Keywords

Examples

			a(1) = 1041973527756883 is the least prime, sum of the first consecutive 44208182 composites from 4 to 47042265, and such that the sum of the first 44208183, 44208184 and 44208185 composites are 1041973574799149, 1041973621841417, 1041973668883687, all prime.
		

Crossrefs

Programs

  • PARI
    i=0; b=0; for( a=2, 2*10^8, if( !isprime(a) , i=i+1; b=b+a; if(( isprime(b) &a%2==1& isprime(b+a+1)) &isprime(a+2)& isprime(b+2*a+4)&isprime( a+4)&isprime(b+3*a+9), print1(b,", "))))

Extensions

a(8)-a(13) from Donovan Johnson, Jan 06 2014
Showing 1-2 of 2 results.