Added useful comments.

This commit is contained in:
Nicolás Ortega Froysa 2019-10-08 18:02:45 +02:00
parent 84687f86c1
commit 23b8d988e8

View File

@ -40,7 +40,7 @@ int main() {
mpz_t p0, p1; // numbers to be tested for prime-ness.
mpz_inits(test_base, p0, p1, NULL);
mpz_set_ui(test_base, 6);
mpz_set_ui(test_base, 6); // test_base = 6*k
puts("2");
puts("3");
@ -61,7 +61,7 @@ int main() {
printf("\n");
}
mpz_add_ui(test_base, test_base, 6);
mpz_add_ui(test_base, test_base, 6); // k += 1
}
mpz_clears(test_base, p0, p1, NULL);