Completed listPrimes()