Function to count integers upto k which are having perfect squares as factors . i is index of next prime number whose square needs to be checked . curr is current number whos square to be checked .
def countSquares ( i , cur , k , a ) : NEW_LINE