import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
int start = 1;
int end = 65536;
int[] sieve = getDivisorCount(start, end);
long sum = 0;
for(int i=0;i<sieve.length;i++){
sum += sieve[i];
}
System.
out.
println("divisor count: " + sum
); }
public static int[] getDivisorCount(int a, int b){
int[] sieve = new int[b - a + 1];
for(int i = 1; i <= max; i++){
int j = (a / i) * i;
if(j < a)
j += i;
for( ; j <= b; j += i){
double root
= Math.
sqrt(j
); if(i < root){
sieve[j - a] += 2;
}else if(i == root){
sieve[j - a]++;
}
}
}
return sieve;
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW50IHN0YXJ0ID0gMTsKCQlpbnQgZW5kID0gNjU1MzY7CgkJCgkJaW50W10gc2lldmUgPSBnZXREaXZpc29yQ291bnQoc3RhcnQsIGVuZCk7CgkJbG9uZyBzdW0gPSAwOwoJCWZvcihpbnQgaT0wO2k8c2lldmUubGVuZ3RoO2krKyl7CgkJCXN1bSArPSBzaWV2ZVtpXTsKCQl9CgkJU3lzdGVtLm91dC5wcmludGxuKCJkaXZpc29yIGNvdW50OiAiICsgc3VtKTsKCX0KCQoJcHVibGljIHN0YXRpYyBpbnRbXSBnZXREaXZpc29yQ291bnQoaW50IGEsIGludCBiKXsKCQlpbnRbXSBzaWV2ZSA9IG5ldyBpbnRbYiAtIGEgKyAxXTsKCQlkb3VibGUgbWF4ID0gTWF0aC5jZWlsKE1hdGguc3FydChiKSk7CgkJZm9yKGludCBpID0gMTsgaSA8PSBtYXg7IGkrKyl7CgkJCWludCBqID0gKGEgLyBpKSAqIGk7CgkJCWlmKGogPCBhKQoJCQkJaiArPSBpOwoJCQlmb3IoIDsgaiA8PSBiOyBqICs9IGkpewoJCQkJZG91YmxlIHJvb3QgPSBNYXRoLnNxcnQoaik7CgkJCQlpZihpIDwgcm9vdCl7CgkJCQkgICAgc2lldmVbaiAtIGFdICs9IDI7CgkJCQl9ZWxzZSBpZihpID09IHJvb3QpewoJCQkJICAgIHNpZXZlW2ogLSBhXSsrOwoJCQkJfQoJCQl9CgkJfQoJCXJldHVybiBzaWV2ZTsKCX0KfQ==