Skip to content
Snippets Groups Projects
Commit 8c993b96 authored by Lilian Lucas Quentin Depierre's avatar Lilian Lucas Quentin Depierre
Browse files

Correction de l'erreur dans le fichier /code/Numbers.c

parent 7e7bc529
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