implemented square
implemented listPrimes and also edited primes