OFFSET
1,1
COMMENTS
EXAMPLE
a(2) = 601 is an invertible prime; 12*601 - 1 = 7211; 12*601 + 1 = 7213; 7211 and 7213 form a twin prime pair.
a(4) = 16661 is an invertible prime; 12*16661 - 1 = 199931; 12*16661 + 1 = 199933; 199931 and 199933 form a twin prime pair.
MATHEMATICA
k = 12; Select[lst = {};
fQ[n_] := Block[{allset = {0, 1, 6, 8, 9}, id = IntegerDigits@n}, rid = Reverse[id /. {6 -> 9, 9 -> 6}]; Union@Join[id, allset] == allset && PrimeQ@FromDigits@rid && rid != id]; Do[If[PrimeQ@n && fQ@n, AppendTo[lst, n]], {n, 12000000}]; lst,
PrimeQ[k# + 1] && PrimeQ[k# - 1] &]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
K. D. Bajpai, Jul 19 2018
STATUS
approved