OFFSET
1,1
COMMENTS
The old name was "Home primes the result of composite numbers."
Number of terms < 10^n: 0, 2, 37, 274, 2087, 15472, 123261, ....
Increasing sequence of all prime numbers which are concatenations of at least two primes ordered in nondecreasing order (e.g., 227=2.2.7, 1319=13.19). - Bartlomiej Pawlik, Aug 06 2023
LINKS
Patrick De Geest, Home Primes < 100 and Beyond.
Eric Weisstein's World of Mathematics, Home Prime.
EXAMPLE
The home primes corresponding to the first few composite numbers c are as follows:
c A037274(c)
4 211
6 23
8 3331113965338635107
9 311
10 773
12 223
14 13367
15 1129
16 31636373
18 233
20 3318308475676071413
21 37
... ...
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}]; Union@ lst
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Sep 30 2007
EXTENSIONS
Entry revised by N. J. A. Sloane, Mar 24 2021
STATUS
approved