Update Prob7_10001stPrime.java

Removed redundant counter