A100600 Numbers k such that (prime(k)-1)! + prime(k)^6 is prime.
3, 4, 29, 32, 133
Offset: 1
Examples
a(1) = 3 because (prime(3)-1)! + prime(3)^6 = (5-1)! + 5^6 = 15649 is the smallest prime of that form.
Programs
-
Mathematica
lst={};Do[p=Prime[n];If[PrimeQ[(p-1)!+p^6], AppendTo[lst, n]], {n, 10^2}];lst (* Vladimir Joseph Stephan Orlovsky, Sep 08 2008 *)
Formula
Numbers k such that (prime(k)-1)! + prime(k)^6 is prime, where prime(k) is the k-th prime.
Extensions
a(5) from Jinyuan Wang, Apr 10 2020
Comments