Update CMakeLists.txt

This commit is contained in:
2026-09-05 11:05:50 +08:00
parent 94bdf44889
commit a7a78fbac8
22 changed files with 1339 additions and 52 deletions
+18
View File
@@ -0,0 +1,18 @@
#include <iostream>
using namespace std;
// x[0]..x[99]
bool is_prime(int n) {
for (int i=2; i*i<=n; i++) {
if (n%i == 0) {return false;}
}
return true;
}
int main() {
cout << is_prime(4);
return 0;
}