OFFSET
1,1
COMMENTS
All terms are multiples of 210, hence simpler code is possible.
EXAMPLE
21968100 is there because 21968099, 21968101, 43936199, 43936201, 65904299, 65904301, 87872399, 87872401 are all prime.
MATHEMATICA
tb={}; Do[If[(PrimeQ[n-1]&&PrimeQ[n+1])&& (PrimeQ[2*n-1]&&PrimeQ[2*n+1])&& (PrimeQ[3*n-1]&&PrimeQ[3*n+1])&& (PrimeQ[4*n-1]&&PrimeQ[4*n+1]), Print[n]; AppendTo[tb, n]], {n, 21968100, 10^8, 210}]; tb
Select[210*Range[424*10^5], AllTrue[{#-1, #+1, 2#-1, 2#+1, 3#-1, 3#+1, 4#-1, 4#+1}, PrimeQ]&] (* Harvey P. Dale, Jul 23 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 03 2006
EXTENSIONS
Edited by Don Reble, May 16 2006
a(20)-a(22) from Pontus von Brömssen, Oct 14 2021
STATUS
approved