OFFSET
1,1
COMMENTS
Home primes whose homeliness is 1.
Number of terms < 10^n: Pi(10^n)- {0, 2, 37, 274, 2087, 15472, 76940, ...}.
EXAMPLE
Only {2} -> 2, {3} -> 3, etc. Whereas {6 & 23} -> 23 thus 23 has a homeliness of 2 and therefore is not a member of this sequence.
MATHEMATICA
lst = {}; f[n_] := FromDigits@ Flatten[ IntegerDigits@ Table[ #[[1]], {#[[2]]}] & /@ FactorInteger@n, 2]; h[n_] := NestWhileList[f@# &, n, !PrimeQ@# &, 1, 28]; Do[p = h[n][[ -1]]; If[ PrimeQ@p && p < 10^7 && p != n, Print[{n, p}]; AppendTo[lst, p]], {n, 2, 1000}];
Complement[ Prime@ Range@ 100, {23, 37, 211, 223, 227, 229, 233, 241, 257, 271, 277, 283, 311, 313, 317, 331, 337, 347, 353, 359, 367, 373, 379, 383, 389, 397, 523, 541}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Sep 30 2007
STATUS
approved