Added "listPrimes" method