##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
You are given an array .
You may delete any number of elements from the array, possibly zero or all of them. The cost of your choice is the sum of the deleted elements.
Your goal is to make the product of the remaining elements not divisible by .
If all elements are deleted, the product of the empty array is considered to be .
Find the minimum possible cost.
Delete . The remaining product is , which is not divisible by .
Delete nothing. The product is , which is not divisible by .
Delete , , and . The remaining product is , which is not divisible by .
Delete and . The remaining product is , which is not divisible by .
Delete nothing. The product is , which is not divisible by .