did this not have indentation?
huh?
This commit is contained in:
parent
f25e7f8be6
commit
350d511cc6
5
main.cpp
5
main.cpp
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
// Generate primes using the sieve of eratosthenes
|
// Generate primes using the sieve of eratosthenes
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -15,8 +14,8 @@ int main() {
|
|||||||
notprime = false;
|
notprime = false;
|
||||||
for (unsigned int i=0;i<primes.size();++i) {
|
for (unsigned int i=0;i<primes.size();++i) {
|
||||||
if (nextnumber % primes[i] == 0) {
|
if (nextnumber % primes[i] == 0) {
|
||||||
notprime = true;
|
notprime = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!notprime) {
|
if (!notprime) {
|
||||||
|
Loading…
Reference in New Issue
Block a user