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.

A239414 Numbers k such that k^6 - 6 is prime.

Original entry on oeis.org

5, 7, 17, 37, 113, 137, 157, 173, 175, 203, 223, 227, 295, 337, 395, 407, 475, 487, 503, 535, 605, 617, 707, 743, 797, 833, 857, 863, 865, 877, 905, 943, 947, 965, 973, 995, 1037, 1043, 1057, 1103, 1217, 1243, 1247, 1277, 1295, 1337, 1357, 1363, 1375, 1403
Offset: 1

Views

Author

Derek Orr, Mar 17 2014

Keywords

Comments

Note that all the numbers in this sequence are odd.

Examples

			5^6 - 6 = 15619 is prime. Thus, 5 is a member of this sequence.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[3,1501,2],PrimeQ[#^6-6]&] (* Harvey P. Dale, Jul 24 2016 *)
  • PARI
    is(n)=isprime(n^6-6) \\ Charles R Greathouse IV, Feb 17 2017
  • Python
    import sympy
    from sympy import isprime
    {print(n) for n in range(10**4) if isprime(n**6-6)}