OFFSET
1,3
COMMENTS
LINKS
Arkadiusz Wesolowski, Table of n, a(n) for n = 1..1032
EXAMPLE
17 -> {1, 17} = 117 (composite) -> {1, 117} = 1117 (prime), so a(17) = 1117.
MATHEMATICA
lst = {}; Do[If[DivisorSigma[0, n] == 1 || Divisible[n, 5] || EvenQ[n], AppendTo[lst, 0], If[PrimeQ[n], n = 10^Length[IntegerDigits[n]] + n]; While[True, If[PrimeQ[n], Break[]]; n = FromDigits[Flatten[IntegerDigits[{1, n}]]]]; AppendTo[lst, n]], {n, 32}]; lst
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Arkadiusz Wesolowski, Apr 18 2012
STATUS
approved