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.

A182343 Primes of the form k^4 + 2 for k >= 0.

Original entry on oeis.org

2, 3, 83, 6563, 50627, 194483, 4100627, 10556003, 15752963, 22667123, 57289763, 96059603, 276922883, 395254163, 6059221283, 6597500627, 12296370323, 14166950627, 42110733683, 44386483763, 46753250627, 49213429283, 69257922563, 72555348323
Offset: 1

Views

Author

Patrick Devlin, Apr 25 2012

Keywords

Comments

Apart from 3, this is a subsequence of A053786. - Bruno Berselli, Apr 26 2012

Examples

			2 = 0^4 + 2;
3 = 1^4 + 2;
83 = 3^4 + 2.
		

Crossrefs

Programs

  • Magma
    [2,3] cat [n^4+2: n in [3..600 by 6]|IsPrime(n^4+2)]; // Bruno Berselli, Apr 26 2012
  • Maple
    # choose N large, then S is the desired set
    f:=n->n^4 + 2:
    S:={}:
    for n from 0 to N do if(isprime(f(n))) then S:=S union {f(n)}: fi: od:
  • Mathematica
    Select[Range[0,600]^4 + 2,PrimeQ] (* Bruno Berselli, Apr 26 2012 *)

A053785 Nextprime(n^4) - n^4.

Original entry on oeis.org

1, 1, 2, 1, 6, 1, 10, 3, 2, 7, 12, 7, 10, 15, 2, 1, 16, 11, 16, 1, 2, 3, 6, 1, 22, 3, 16, 1, 12, 13, 18, 7, 8, 1, 18, 11, 16, 7, 20, 21, 12, 25, 28, 3, 2, 1, 6, 1, 16, 9, 10, 43, 22, 1, 12, 1, 2, 25, 6, 19, 16, 3, 2, 43, 28, 5, 6, 3, 2, 31, 16, 7, 6, 1, 34, 3, 48, 5, 16, 1, 26, 1, 30, 47
Offset: 1

Views

Author

Enoch Haga, Mar 26 2000

Keywords

Examples

			a(5)=6 because n^4=625 and next prime is 631; 631-625=6.
		

Crossrefs

Programs

  • Mathematica
    Table[NextPrime[n^4]-n^4,{n,90}] (* Harvey P. Dale, Aug 27 2017 *)
  • PARI
    a(n) = nextprime(n^4) - n^4; \\ Michel Marcus, Jun 06 2014

Formula

a(n) = A007920(n^4). - Michel Marcus, Jun 06 2014
Showing 1-2 of 2 results.