#include<stdio.h>
#define N 1000000
int main(void)
{
  int i,j,n,a[N],count = 0;

  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&a[i]);
  }

  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      if(i!=j && a[i] % a[j] != 0){
        count++;
      }
    }
  }

  printf("%d\n",count);


  return 0;
}