On the number of distinct polytypes of mica and SiC with a prime layer-number