#include <stdio.h>
#include <stdlib.h>

int compare_int(const void* a, const void* b){
	return *(int*)a - *(int*)b;
}

int main() {
	int n, a[200000], ans = 0;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) scanf("%d", &a[i]);
	qsort(a, n, sizeof(int), compare_int);
	//for (int i = 0; i < n; i++) printf("%d ", a[i]);


	int t = 0, d[200000];
	d[t] = a[0],t++;
	if (a[0] != a[1])ans++;
	for (int i = 1; i < n; i++) {
		for (int j = 0; j < t;j++) {
			if (2 * d[j] <= a[i]||a[i] == d[j]) {
				if (a[i] % d[j] == 0) goto ABC;
			}
			else break;
		}
		d[t] = a[i];
		t++;
		ans++;
	ABC:printf("");
	}
	printf("%d", ans);
	return 0;
}