add :auto algorithm for primepi