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.

A252066 Numbers n such that n^2 is a sum of 2 and also of 4 consecutive primes.

Original entry on oeis.org

6, 24, 42, 48, 1326, 1676, 2772, 4428, 4820, 4940, 5328, 5472, 6318, 9950, 10074, 12942, 13724, 14372, 16290, 18428, 22776, 22818, 23800, 23952, 25134, 28614, 28800, 31212, 31394, 32060, 33716, 36526, 37320, 39228, 39446, 39528, 43670, 43798, 44490, 45570, 47700, 48000
Offset: 1

Views

Author

Zak Seidov, Dec 13 2014

Keywords

Examples

			6^2=36=17+19=5+7+11+13, 18^2=324=157+163=73+79+83+89.
		

Crossrefs

Intersection of A051395 and A074924.

Programs

  • Mathematica
    Module[{nn=10^7,p2,p4},p2=Total/@Partition[Prime[Range[nn]],2,1];p4=Total/@Partition[ Prime[Range[nn]],4,1];Select[Sqrt[Intersection[p2,p4]],IntegerQ]] (* The program generates the first 20 terms of the sequence. *) (* Harvey P. Dale, May 03 2024 *)