Yes, here are some unit tests for the IsPrime function:

#include <cassert>

void TestIsPrime() {
  assert(IsPrime(2) == true);
  assert(IsPrime(3) == true);
  assert(IsPrime(4) == false);
  assert(IsPrime(5) == true);
  assert(IsPrime(6) == false);
  assert(IsPrime(7) == true);
  assert(IsPrime(8) == false);
  assert(IsPrime(9) == false);
  assert(IsPrime(10) == false);
  assert(IsPrime(11) == true);
}

int main() {
  TestIsPrime();
  return 0;
}
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence