Teaser 2515: [Interleaved powers]

From The Sunday Times, 5th December 2010 [link] [link]

Using each digit just once I wrote down two five-figure numbers. One was a cube and the other was a square. Then I combined these two five-figure numbers to give me a ten-figure number by using one of them to occupy the odd positions (from left to right) and the other to occupy the even positions (again from left to right). Then the four-figure number made up in order from the digits in the prime positions turned out to be prime.

What was the ten-figure number?

This puzzle was originally published with no title.

[teaser2515]