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.

A154938 Numbers k such that k^6 - 2 and k^6 + 2 are both primes.

Original entry on oeis.org

195, 213, 231, 657, 1563, 1749, 2967, 3597, 3627, 4263, 4887, 6867, 6993, 7257, 7725, 9045, 9201, 9717, 11595, 12579, 13029, 14145, 14259, 14367, 15837, 16131, 16581, 17259, 19905, 19917, 21081, 21711, 23127, 24435, 24921, 28299, 28707
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    [n: n in [1..500] | IsPrime(n^6-2) and IsPrime(n^6+2)]; // Vincenzo Librandi, Nov 26 2010
  • Mathematica
    lst={};Do[p1=n^6-2;p2=n^6+2;If[PrimeQ[p1]&&PrimeQ[p2],AppendTo[lst,n]],{n,0,9!}];lst
    Select[Range[30000],AllTrue[#^6+{2,-2},PrimeQ]&] (* Harvey P. Dale, Jun 21 2025 *)