A139074 a(n) = smallest prime p such that p!/n + 1 is prime, or 0 if no such prime exists.
2, 2, 3, 5, 7, 3, 11, 7, 26737, 5, 13, 5
Offset: 1
Examples
a(1) = 2 because 2 is the first prime and 2!/1 + 1 = 3 is prime a(2) = 2 because 2 is the first prime and 2!/2 + 1 = 2 is prime a(3) = 3 because 3!/3 + 1 = 3 is prime
Crossrefs
Programs
-
Mathematica
a = {}; Do[k = 1; While[ ! PrimeQ[(Prime[k]! + n)/n], k++ ]; AppendTo[a, Prime[k]], {n, 1, 8}]; a
Extensions
a(9)-a(12) by Robert Price, Dec 19 2010
Comments