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.

A329539 Numbers m such that the sum of the first m primes as well as the sum of the squares and the sum of the cubes of the first m primes are all prime.

Original entry on oeis.org

3618, 5840, 7716, 17502, 19460, 22398, 23520, 26852, 33824, 41202, 45848, 47328, 62138, 72950, 82722, 101084, 118062, 127160, 128784, 134012, 136380, 148940, 165240, 173658, 175220, 175310, 177516, 187556, 193692, 203310, 230802, 234032, 279102, 281754, 285518, 289970, 295196, 298652
Offset: 1

Views

Author

Michel Marcus, Nov 16 2019

Keywords

Crossrefs

Programs

  • Mathematica
    Module[{nn=300000,prs,m1,m2,m3},prs=Prime[Range[nn]];m1=Accumulate[ prs];m2 = Accumulate[prs^2];m3=Accumulate[prs^3];Position[Thread[ {m1,m2,m3}],? (Total[ Boole[ PrimeQ[#]]]==3&)]]//Flatten (* _Harvey P. Dale, Jul 28 2021 *)
  • PARI
    s=0; t=0; u=0; n=0; forprime(p=2, 1e6, s+=p; t+=p^2; u+=p^3; n++; if(isprime(u) && isprime(t) && isprime(s), print1(n, ", ")))

Extensions

Name (description) modified by Harvey P. Dale, Jul 28 2021

A329540 Numbers m such that the sum of the first m primes as well as the sum of the squares, the sum of the cubes and the sum of 4th powers of the first m primes are prime.

Original entry on oeis.org

3618, 743322, 1557552, 1808652, 2128724, 2242290, 2486874, 3534560, 4220258, 4617614, 4763114, 5701340, 5894718, 5921088, 6378312, 8376932, 8883662, 9021482, 10113080, 10766654, 11172798, 12168908, 14188014, 14806460, 16369448, 19775468, 19954778, 21259494, 21855360, 22533638
Offset: 1

Views

Author

Michel Marcus, Nov 16 2019

Keywords

Crossrefs

Programs

  • PARI
    s=0; t=0; u=0; v=0; n=0; forprime(p=2, 1e8, s+=p; t+=p^2; u+=p^3; v+=p^4; n++; if (isprime(v) && isprime(u) && isprime(t) && isprime(s), print1(n, ", ")))

Extensions

a(13)-a(30) from Daniel Suteu, Nov 16 2019
Showing 1-2 of 2 results.