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.

A143904 Numbers of the form : n^3-3=prime, n^3+3=prime.

Original entry on oeis.org

0, 2, 4, 16, 26, 74, 106, 124, 184, 190, 224, 280, 410, 470, 496, 634, 644, 764, 766, 880, 896, 1126, 1196, 1424, 1430, 1616, 1694, 1706, 1786, 1820, 1876, 1964, 1970, 2210, 2216, 2294, 2494, 2746, 2816, 3010, 3026, 3284, 3464, 3574, 3616, 3794, 3820, 3854
Offset: 0

Views

Author

Keywords

Programs

  • Mathematica
    lst={};Do[m=n^3;If[PrimeQ[m-3]&&PrimeQ[m+3],AppendTo[lst,n]],{n,0,10^4}];lst
    Select[Range[0,4000,2],AllTrue[#^3+{3,-3},PrimeQ]&] (* Harvey P. Dale, Jul 29 2021 *)