atcoder#ABC170D. [ABC170D] Not Divisible
[ABC170D] Not Divisible
Score : points
Problem Statement
Given is a number sequence of length .
Find the number of integers with the following property:
- For every integer such that , does not divide .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
5
24 11 8 3 16
3
The integers with the property are , , and .
4
5 5 5 5
0
Note that there can be multiple equal numbers.
10
33 18 45 28 8 19 89 86 2 4
5