public class Test1 {
private static boolean[] booleans = new boolean[2015];
public static void main(String[] args) {
for (int i = 1; i <= 2015; i++) {
changeBoolean(i);
}
int count = 0;
for (int i = 0; i < booleans.length; i++) {
if (booleans[i]) {
count++;
}
}
System.out.println(count);
}
/**
* @param i
*/
private static void changeBoolean(int i) {
for (int j = 0; j < booleans.length; j++) {
if (((j + 1) % i) == 0) {
booleans[j] = !booleans[j];
}
}
}
}