Revert "Avoid nth_prime(0) error"

This reverts commit fef59bab59b627c4653a14479589485483c26e2c.