P11. 1 CountNonDivisible
Calculate the number of elements of an array that are not divisors of each element.
P11. 1 非因子数
计算一个数组中所有元素的非因子数的个数
由N个整数组成的数组A。对于每个数A[i],其中0≤i<N,要计算数组A中不是A[i]因子的元素数。并称这些元素为非因子数。
例如,整数N=5时的数组A:
A[0]=3,A[1]=1,A[2]=2,A[3]=3,A[4]=6
对于以下元素:
a[0]=3,非因子数为:2,6,个数为2;
a[1]=1,非因子数为:3,2,3,6,个数为4;
a[2]=2,非因子数为:3,3,6,个数为3;
a[3]=3,非因子数为:2,6,个数为2;
A[4]=6,没有任何非因子数,个数为0;
编写函数