human
This function in C++ is for checking if a number is prime or not. Can you create a driver/main function that will use it and print to the console the first 20 prime numbers?

using namespace std;
 
bool isPrime(int n)
{
      if(n == 1 || n == 0) return false;

      for(int i = 2; i < n; i++)
      {
        if(n % i == 0) return false;
      }
      return true;
}
gpt
Sure! Here's an example C++ driver/main function that uses the `isPrime` function to print the first 20 prime numbers to the console:
```
#include <iostream>

using namespace std;

// Function to check if a number is prime
bool isPrime(int n)
{
  if(n == 1 || n == 0) return false;

  for(int i = 2; i < n; i++)
  {
    if(n % i == 0) return false;
  }
  return true;
}

int main()
{
  int count = 0; // Counter for number of prime numbers found
  int num = 2; // Starting number to check for primality

  cout << "First 20 prime numbers: " << endl;

  while(count < 20)
  {
    if(isPrime(num))
    {
      cout << num << " ";
      count++;
    }
    num++;
  }

  cout << endl;

  return 0;
}
```
The `main` function uses a while loop to call the `isPrime` function 20 times, and prints the result in each iteration.