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-4 of 4 results.

A212881 Numbers k such that k^3 - prime(k) is prime.

Original entry on oeis.org

2, 10, 38, 42, 44, 50, 66, 74, 80, 90, 160, 178, 186, 190, 220, 224, 228, 234, 238, 240, 242, 256, 260, 270, 272, 280, 298, 342, 366, 368, 376, 380, 396, 400, 430, 462, 474, 476, 486, 504, 518, 526, 590, 596, 598, 610, 628, 668, 670, 672, 696, 700, 702, 714
Offset: 1

Views

Author

Zak Seidov, May 29 2012

Keywords

Comments

All terms are trivially even.

Crossrefs

Programs

  • Magma
    [n: n in [1..400]|IsPrime(n^3-NthPrime(n))];
  • Mathematica
    Reap[Do[If[PrimeQ[n^3-Prime[n]],Sow[n]],{n,2,1000,2}]][[2,1]]
    Select[2*Range[400],PrimeQ[#^3-Prime[#]]&] (* Harvey P. Dale, Apr 28 2022 *)

A213428 Numbers k such that k^8 - prime(k) is prime.

Original entry on oeis.org

6, 10, 12, 60, 72, 168, 174, 190, 204, 230, 290, 300, 396, 536, 628, 948, 972, 990, 1014, 1042, 1050, 1174, 1254, 1324, 1326, 1428, 1566, 1602, 1662, 1684, 1808, 1854, 1866, 1942, 1950, 2070, 2154, 2170, 2206, 2214, 2234, 2332, 2388, 2508, 2660, 2668, 2784
Offset: 1

Views

Author

Jonathan Vos Post, Jun 11 2012

Keywords

Comments

k such that A001016(k) - A000040(k) is in A000040.

Examples

			a(1) = 6 because 6^8 - prime(6) = 1679603 is prime.
		

Crossrefs

Programs

  • Maple
    P:= select(isprime,[2,seq(i,i=3..10^5,2)]):
    select(t -> isprime(t^8 - P[t]), [seq(i,i=2..nops(P),2)]); # Robert Israel, Jun 02 2023
  • Mathematica
    Select[Range[3000], PrimeQ[#^8 - Prime[#]] &] (* T. D. Noe, Jun 11 2012 *)

A213477 Main diagonal starting k=2 of array A(k,n) = numbers n such that n^k - prime(n) is a prime.

Original entry on oeis.org

6, 10, 40, 14, 62, 76, 174, 278, 218, 702, 762, 758, 950, 858, 1782, 2290, 1596, 1462, 1848, 2964, 2262, 4278, 3750, 4320, 5076, 4010, 4890, 8040, 7494, 5962, 7996, 10318, 9424, 5770, 10080, 11088, 12222, 13806, 14712, 16904, 15222, 15620, 18258, 16092
Offset: 1

Views

Author

Jonathan Vos Post, Jun 12 2012

Keywords

Examples

			The array begins:
=====================================================
....|.n=1.|.n=2.|.n=3.|.n=4.|.n=5.|.n=6.|.n=7.|.n=8.|
=====================================================
k=2.|...6.|..10.|..12.|..18.|..24.|..28.|..30.|..40.|A064712
k=3.|...2.|..10.|..38.|..42.|..44.|..50.|..66.|..74.|A212881
k=4.|...2.|...6.|..40.|..76.|.144.|.146.|.148.|.166.|A212883
=====================================================
		

References

  • The k=2 row is A064712 Numbers n such that n^2 - prime(n) is prime.
  • The k=3 row is A212881 Numbers n such that n^3 - prime(n) is prime.
  • The k=4 row is A212883 Numbers n such that n^4 - prime(n) is prime.
  • The k=8 row is A213428 Numbers n such that n^8 - prime(n) is prime.

Crossrefs

Programs

  • Mathematica
    Table[Select[Range[100000], PrimeQ[#^n - Prime[#]] &, n-1][[n-1]], {n, 2, 50}] (* T. D. Noe, Jun 13 2012 *)

A213535 Numbers n such that n^5 - prime(n) is prime.

Original entry on oeis.org

2, 8, 10, 14, 30, 40, 50, 190, 294, 308, 346, 370, 396, 400, 630, 634, 690, 716, 746, 790, 870, 912, 926, 968, 1010, 1104, 1122, 1130, 1198, 1204, 1308, 1392, 1394, 1482, 1532, 1560, 1600, 1640, 1706, 1714, 1740, 1742, 1770, 1784, 1810, 1816, 1848, 1880
Offset: 1

Views

Author

Jonathan Vos Post, Jun 13 2012

Keywords

Examples

			a(1) = 2 because 2^5 - prime(2) = 29  a prime.
a(2) = 8 because 8^5 - prime(8) = 32749 is prime.
a(3) = 10 because 10^5 - prime(10) = 99971 is prime.
a(8) = 190 because 190^5 - prime(190) = 247609898849  is prime.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[2000], PrimeQ[#^5 - Prime[#]] &] (* T. D. Noe, Jun 13 2012 *)
Showing 1-4 of 4 results.