The number of 10-digit numbers such that the product of any two consecutive digits in the numbers is prime number, is
A. 1024
B. 2048
C. 512
D. 64