A stoneboard was found on the territory of the ancient Greek Academia as a result of archaeological excavations.
The archeologists decided that this stoneboard belonged to a mathematician who lived in the 7th century BC. The list of unsolved problems was written on the stoneboard. The archaeologists became thrilled to solve the problems but got stuck on the fifth. They were looking for a 10-digit number. The number should consist of only different digits. Moreover, if you cross any 6 digits, the remaining number should be composite. Can you help the archeologists to figure out the answer?