Fixed listPrimes(). The theme from this: don't code late at night. Ever.