Skip to content
Snippets Groups Projects
Commit f1cac7de authored by Andy Tiana Raparison's avatar Andy Tiana Raparison
Browse files

C ET DEBUGAGE

parent 64bf784e
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ void primes(int numbers[]) {
for (i=0; i<TAILLE; i++) {
bool isPrime = true;
int m;
for (m=1; m < numbers[i] ;m++) {
for (m=2; m < numbers[i] ;m++) {
if (numbers[i] % m == 0) {
isPrime = false;
break;
......@@ -28,4 +28,4 @@ int main() {
array[i] = i+3;
primes(array);
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment