A100599 Numbers k such that (prime(k)-1)! + prime(k)^7 is prime.
7, 14, 16, 59
Offset: 1
Examples
a(1) = 7 because (prime(7)-1)! + prime(7)^7 = (17-1)! + 17^7 = 20923200226673 is the smallest prime of that form.
Programs
-
Mathematica
lst={};Do[p=Prime[n];If[PrimeQ[(p-1)!+p^7], AppendTo[lst, n]], {n, 10^2}];lst (* Vladimir Joseph Stephan Orlovsky, Sep 08 2008 *)
-
PARI
is(k) = ispseudoprime((prime(k)-1)! + prime(k)^7); \\ Jinyuan Wang, Apr 10 2020
Comments