A134767 Indices where primes occur in variant of permutational numbers A134750.
3, 14, 17, 19, 20, 25, 28, 33, 38, 52, 57, 63, 68, 89, 91, 100, 111, 113, 115, 119, 123, 124, 125, 127, 130, 131, 133, 141, 142, 143, 144, 145, 146, 151, 158, 164, 172, 174, 179, 185, 198, 209, 212, 256, 258, 275, 294, 299, 307, 309, 323, 326, 331, 332, 337
Offset: 1
Keywords
Programs
-
Mathematica
k = {}; a = {}; b = {}; Do[AppendTo[b, n]; w = Permutations[b]; Do[j = FromDigits[1 + w[[m]], n + 1]; AppendTo[a, j], {m, 1, Length[w]}], {n, 0, 6}]; Do[If[PrimeQ[a[[n]]], AppendTo[k, n]], {n, 1, Length[a]}]; k
Comments