OFFSET
1,1
COMMENTS
n's for which no prime exists: 8, 11, 13, 16, 22, 23, 26, 28, 29, 31, 35, 37, 38, 41, 43, 44, 46, 50, 53, 56, 58, 59, 61, 64, 65, 68, 70, 71, 73, 74, 76, 79, 80, 83, 85, 86, 88, 91, 92, 97, 98, 100, ...
MATHEMATICA
f[n_] := Block[{k = 2n + 1}, While[k < 10^5 && ! PrimeQ[k] || ! PrimeQ[k - 2n] || ! PrimeQ[k + 2n], k++ ]; If[k >= 10^5, 0, k]] (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Feb 28 2006
EXTENSIONS
Corrected and extended by Robert G. Wilson v and Zak Seidov, Feb 28 2006
STATUS
approved