Skip to content

Commit

Permalink
test txt
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhutchen committed May 26, 2023
1 parent d99fbd7 commit e330459
Show file tree
Hide file tree
Showing 4 changed files with 521 additions and 3 deletions.
12 changes: 12 additions & 0 deletions components/editor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ class send {
return 1;
}
}



int main()
{
for (int currentNum = 2; ; currentNum++) {
if (isPrime(currentNum)) {
std::cout << currentNum << " ";
}
}
}

int edit(int &num) {
int count = 1;
std::string line;
Expand Down
12 changes: 10 additions & 2 deletions components/testers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class tester {
int cardinality = pow(2, vect.size());
cout << "ALL " << cardinality << " SUBSETS:" << endl;
for (int i = 0; i < nvect.size(); i++) {
cout << "PSET" << i + 1 << ":";
cout << "PSET" << i + 1 << ":";
if (i == nvect.size() - 1) {
cout << "";
}
Expand All @@ -45,7 +45,15 @@ class tester {
cin >> needle;
cout << alg.strStr(stack, needle) << endl;
}

bool isPrime(int number)
{
for (int a = 2; a < number; a++) {
if (number % a == 0) {
return false;
}
}
return true;
}
void fio() {
// file i/o
string filename;
Expand Down
Loading

0 comments on commit e330459

Please sign in to comment.