listPrimes method is working