Skip to content
Snippets Groups Projects
Commit 0ccec2e1 authored by Kiady Niaina Mamy Razakanaivo's avatar Kiady Niaina Mamy Razakanaivo
Browse files

C ET DEBUGUAGE

parent 7104c7b1
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