Since the product of any 5 consecutive positions must be divisible by 5, 5 must either occupy position 4 or position 5, and the rest permuted around it, thus $2\cdot7!$ permutations
Since the product of any 5 consecutive positions must be divisible by 5, 5 must either occupy position 4 or position 5, and the rest permuted around it, thus $2\cdot7!$ permutations