login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Numbers n such that n^8 + 7 is prime.
7

%I #17 Sep 04 2024 23:20:17

%S 0,2,4,10,66,68,86,88,134,146,200,216,250,276,306,310,410,422,472,492,

%T 506,516,538,548,550,594,638,716,746,758,862,888,942,954,964,982,992,

%U 998,1000,1016,1020,1034,1108,1164,1192,1234,1338,1342,1350,1374,1390

%N Numbers n such that n^8 + 7 is prime.

%H Carmine Suriano, <a href="/A125263/b125263.txt">Table of n, a(n) for n = 1..4683</a>

%t lst={};k=8;Do[If[PrimeQ[n^k+k-1], AppendTo[lst, n]], {n, 0, 10^4}];lst (* _Vladimir Joseph Stephan Orlovsky_, Sep 10 2008 *)

%t Select[Range[0,1500],PrimeQ[#^8+7]&] (* _Harvey P. Dale_, Sep 04 2024 *)

%o (PARI) is(n)=isprime(n^8+7) \\ _Charles R Greathouse IV_, Feb 17 2017

%Y Other sequences of the type "Numbers n such that n^k + k - 1 is prime": A000040 (k=1), A005574 (k=2), A067200 (k=3), A125259 (k=4), A125260 (k=5), A125261 (k=6), A125262 (k=7), this sequence (k=8), A125264 (k=10), A125265 (k=11)..

%K nonn

%O 1,2

%A _Zak Seidov_, Nov 26 2006