An integer is called a superinteger of another integer if the digits of form a subsequenceA subsequence is a sequence that can be derived from another sequence by deleting some elements without changing the order of the remaining elements. of the digits of .
For example, is a superinteger of , while is not a superinteger of .
Let be the th prime number, and let be the th composite number. For example, , , = 4 and .
Let be the sequence of the digital roots of ( is defined similarly for ):
Let be the integer formed by concatenating the first elements of ( is defined similarly for ).
Let be the smallest positive integer that is a common superinteger of and . For example, , and .
Find .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.