How to calculate the product of prime numbers found on multiple of 3 positions in a list using the divide and conquer method?